[
https://issues.apache.org/jira/browse/PDFBOX-2583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14258239#comment-14258239
]
ASF subversion and git services commented on PDFBOX-2583:
---------------------------------------------------------
Commit 1647778 from [~lehmi] in branch 'pdfbox/branches/1.8'
[ https://svn.apache.org/r1647778 ]
PDFBOX-2583: log about missing/wrong dictionary type instead of throwing an
exception
> 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: 2.0.0
> Reporter: Kevin Morin
> Assignee: Andreas Lehmkühler
> 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)