pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giedrius Noreikis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4289) Double negative number
Date Thu, 09 Aug 2018 21:14:00 GMT

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

Giedrius Noreikis commented on PDFBOX-4289:
-------------------------------------------

Cool, thanks!

> Double negative number
> ----------------------
>
>                 Key: PDFBOX-4289
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4289
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Parsing
>    Affects Versions: 2.0.11
>            Reporter: Giedrius Noreikis
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.12, 3.0.0 PDFBox
>
>
> We have an issue similar to the PDFBOX-3589. The PDF contains {{/ItalicAngle --16.33}},
and the exception we are getting is:
> {code}
> Exception in thread "main" java.io.IOException: Error expected floating point number
actual='--16.33'
> 	at org.apache.pdfbox.cos.COSFloat.<init>(COSFloat.java:82)
> 	at org.apache.pdfbox.cos.COSNumber.get(COSNumber.java:115)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:947)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionaryValue(BaseParser.java:152)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionaryNameValuePair(BaseParser.java:279)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionary(BaseParser.java:212)
> 	at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:862)
> 	at org.apache.pdfbox.pdfparser.COSParser.parseFileObject(COSParser.java:899)
> 	...
> {code}
> Such "numbers" probably violate the specification, but the behaviour of PDFBox should
be consistent, so the second minus sign should be ignored here as well.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message