pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4330) NumberFormatException in CFFParser.readRealNumber()
Date Wed, 03 Oct 2018 11:58:00 GMT

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

ASF subversion and git services commented on PDFBOX-4330:
---------------------------------------------------------

Commit 1842708 from tilman@apache.org in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1842708 ]

PDFBOX-4330: skip double E

> NumberFormatException in CFFParser.readRealNumber()
> ---------------------------------------------------
>
>                 Key: PDFBOX-4330
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4330
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.11
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>              Labels: CFF
>             Fix For: 2.0.13, 3.0.0 PDFBox
>
>         Attachments: pop-bugzilla37292.pdf
>
>
> {noformat}
> Exception in thread "main" java.lang.NumberFormatException: For input string: "-1.5258789E-E-55"
>         at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
>         at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
>         at java.lang.Double.parseDouble(Double.java:538)
>         at java.lang.Double.valueOf(Double.java:502)
>         at org.apache.fontbox.cff.CFFParser.readRealNumber(CFFParser.java:405)
>         at org.apache.fontbox.cff.CFFParser.readEntry(CFFParser.java:281)
>         at org.apache.fontbox.cff.CFFParser.readDictData(CFFParser.java:258)
>         at org.apache.fontbox.cff.CFFParser.parseType1Dicts(CFFParser.java:736)
>         at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:569)
>         at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:125)
>         at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:76)
> {noformat}
> This happens on pages 2 and 3. The cause is an invalid sequence that has "E-" twice.
We just skip one of the E's and it works.



--
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