[
https://issues.apache.org/jira/browse/PDFBOX-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hewson resolved PDFBOX-2193.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
Problem was caused by the PDF containing an indirect reference to the page's
Font resources dictionary in an ExtGState instead of containing a [font, size]
array. Fixed in [r1608989|http://svn.apache.org/r1608989].
> ClassCastException in PDExtendedGraphicsState.getFontSetting()
> ---------------------------------------------------------------
>
> Key: PDFBOX-2193
> URL: https://issues.apache.org/jira/browse/PDFBOX-2193
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Assignee: John Hewson
> Fix For: 2.0.0
>
> Attachments: PDFBOX-2193-013973.pdf
>
>
> I get this with the attached file:
> {code}
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary cannot be
> cast to org.apache.pdfbox.cos.COSArray
> 013/013975.pdf
> at
> org.apache.pdfbox.pdmodel.graphics.state.PDExtendedGraphicsState.getFontSetting(PDExtendedGraphicsState.java:385)
> at
> org.apache.pdfbox.pdmodel.graphics.state.PDExtendedGraphicsState.copyIntoGraphicsState(PDExtendedGraphicsState.java:121)
> at
> org.apache.pdfbox.util.operator.SetGraphicsStateParameters.process(SetGraphicsStateParameters.java:49)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)