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

John Hewson edited comment on PDFBOX-2607 at 1/19/15 7:48 PM:
--------------------------------------------------------------

The exception is being logged rather than thrown, it initially does not appear 
to affect rending. On close inspection, the broken font is actually being 
substituted. Examining the font with Acrobat Preflight causes it to crash.


was (Author: jahewson):
The exception is being logged rather than thrown and does not affect rendering. 
The file renders fine.

> Failed reading embedded Font
> ----------------------------
>
>                 Key: PDFBOX-2607
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2607
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Holger Floerke
>            Assignee: John Hewson
>         Attachments: 0023-4834_t1_1.pdf
>
>
> Hi,
> I try to extract an image out of the attatched pdf. PDFViewer like "Acrobat 
> Reader" or the Ubuntu "Document Viewer" are able to display the PDF in a 
> correct way. pdfbox is throwing exception:
> {code}
> SCHWERWIEGEND: Can't read the embedded Type1 font GLCNUS+StempelGaramond-Roman
> java.io.IOException: Invalid start of ASCII segment
>       at org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:83)
>       at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:61)
>       at 
> org.apache.fontbox.type1.Type1Font.createWithSegments(Type1Font.java:70)
>       at 
> org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:174)
>       at 
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:65)
>       at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:92)
>       at 
> org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:50)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:803)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:465)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:439)
>       at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
>       at 
> org.apache.pdfbox.tools.ExtractImages$ImageGraphicsEngine.run(ExtractImages.java:195)
>       at org.apache.pdfbox.tools.ExtractImages.extract(ExtractImages.java:174)
>       at org.apache.pdfbox.tools.ExtractImages.run(ExtractImages.java:139)
>       at org.apache.pdfbox.tools.ExtractImages.main(ExtractImages.java:83)
>       at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:59)
> {code}
> Checked with the latest version from git.
> {code}
> java -jar pdfbox-app-2.0.0-SNAPSHOT.jar ExtractImages 
> /home/hf/Downloads/0023-4834_t1_1.pdf
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to