You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2014/12/24 14:32:13 UTC

[jira] [Resolved] (PDFBOX-2583) Error when rendering a PDF with annotations

     [ https://issues.apache.org/jira/browse/PDFBOX-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-2583.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0
                   1.8.9

I've replaced the exception with an error log entry as the type of that dictionary isn't really needed for further processing.

Thanks for the report!

> Error when rendering a PDF with annotations
> -------------------------------------------
>
>                 Key: PDFBOX-2583
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2583
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 1.8.8, 2.0.0
>            Reporter: Kevin Morin
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.8.9, 2.0.0
>
>         Attachments: EV-FD-M760_M760-E-2270-new.pdf
>
>
> I am using the 2.0.0-SNAPSHOT version deployed on the 23rd of December. When I try to render the attached PDF, I get the following error:
> java.io.IOException: Expected 'Font' dictionary but found 'Subtype'
> 	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:51) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:91) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:50) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:809) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:471) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processAnnotation(PDFStreamEngine.java:312) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.showAnnotation(PDFStreamEngine.java:390) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:776) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:167) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:204) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:137) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> 	at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:70) ~[pdfbox-2.0.0-20141223.230019-865.jar:?]
> I tried to render the same PDF with the 1.8.7 version and it works. There seems to be a regression.



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