[ 
https://issues.apache.org/jira/browse/PDFBOX-5829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17849520#comment-17849520
 ] 

Tilman Hausherr edited comment on PDFBOX-5829 at 5/26/24 10:49 AM:
-------------------------------------------------------------------

{quote}what makes you sure 0.-262 was meant to mean -0.262 and not e.g. two 
numbers 0. -262? Similarly here, is -12.-1 actually 12.1 (minus times minus), 
-12.1 (overeager minus addition), -12. -1 (two numbers), or something else 
entirely?{quote}
It's a best guess and we haven't had any specific complaints about the 
handling, i.e. that a specific job wend badly because of this "repair". Ideally 
I'd refuse every even slightly incorrect file, but in practice our users want 
us to accept these crappy files.

Registering some listener sounds like another complexity level :-(


was (Author: tilman):
{quote}what makes you sure 0.-262 was meant to mean -0.262 and not e.g. two 
numbers 0. -262? Similarly here, is -12.-1 actually 12.1 (minus times minus), 
-12.1 (overeager minus addition), -12. -1 (two numbers), or something else 
entirely?{quote}
It's a best guess and we haven't had any complaints about the handling. Ideally 
I'd refuse every even slightly incorrect file, but in practice our users want 
us to accept these crappy files.

Registering some listener sounds like another complexity level :-(

> IOException: Error expected floating point numberactual='-12.-1'
> ----------------------------------------------------------------
>
>                 Key: PDFBOX-5829
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5829
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.31, 3.0.2 PDFBox, 4.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.32, 3.0.3 PDFBox, 4.0.0
>
>         Attachments: PDFBOX-5829.pdf
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to