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

Tilman Hausherr commented on PDFBOX-2242:
-----------------------------------------

There isn't. A few weeks ago, Tim Allison from TIKA tested thousands of PDF 
files, and there were still some that threw exceptions with both parsers. And 
no, there isn't the "one" parser that does both. Currentlly, IMHO the test 
strategy is to start with loadNonSeq(), and if there's an exception, catch it 
and run load().

> Can't read the embedded Type1C font PERRJO+HelveticaNeueLTStd-BdOu
> ------------------------------------------------------------------
>
>                 Key: PDFBOX-2242
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2242
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>         Attachments: out.pdf
>
>
> java -cp pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar 
> org.apache.pdfbox.tools.PDFToImage out.pdf
> SEVERE: Can't read the embedded Type1C font PERRJO+HelveticaNeueLTStd-BdOu
> java.io.EOFException
>       at org.apache.fontbox.cff.DataInput.readUnsignedByte(DataInput.java:100)
>       at org.apache.fontbox.cff.DataInput.readByte(DataInput.java:87)
>       at org.apache.fontbox.cff.DataInput.readBytes(DataInput.java:175)
>       at org.apache.fontbox.cff.CFFParser.parseFont(CFFParser.java:541)
>       at org.apache.fontbox.cff.CFFParser.parse(CFFParser.java:124)
>       at 
> org.apache.pdfbox.pdmodel.font.PDType1CFont.load(PDType1CFont.java:260)
>       at 
> org.apache.pdfbox.pdmodel.font.PDType1CFont.<init>(PDType1CFont.java:74)
>       at 
> org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:193)
>       at 
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:56)
>       at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:206)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.getFonts(PDFStreamEngine.java:594)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to