[
https://issues.apache.org/jira/browse/PDFBOX-2241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14073588#comment-14073588
]
Tilman Hausherr commented on PDFBOX-2241:
-----------------------------------------
This is a bug in the type1lexer, I'll fix it later. The improved error message
(in my own version) shows what the problem is:
{code}
Expected INTEGER or REAL but got NAME ('0.140541E-3') at pos 2464
{code}
> IOException: Expected INTEGER or REAL but got NAME
> --------------------------------------------------
>
> Key: PDFBOX-2241
> URL: https://issues.apache.org/jira/browse/PDFBOX-2241
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 2.0.0
> Reporter: simon steiner
> Assignee: Tilman Hausherr
> Labels: type1font
> Attachments: 2.pdf
>
>
> java -cp pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar
> org.apache.pdfbox.tools.PDFToImage 2.pdf
> SEVERE: Can't read the embedded Type1 font Avenir-BookOblique
> java.io.IOException: Expected INTEGER or REAL but got NAME
> at
> org.apache.fontbox.type1.Type1Parser.arrayToNumbers(Type1Parser.java:235)
> at org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:188)
--
This message was sent by Atlassian JIRA
(v6.2#6252)