[
https://issues.apache.org/jira/browse/PDFBOX-2198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler closed PDFBOX-2198.
--------------------------------------
> ClassCastException in COSArrayList.convertIntegerCOSArrayToList for font
> widths
> -------------------------------------------------------------------------------
>
> Key: PDFBOX-2198
> URL: https://issues.apache.org/jira/browse/PDFBOX-2198
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.8.6, 1.8.7, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 1.8.7, 2.0.0
>
> Attachments: PDFBOX-2198-014936.pdf
>
>
> I get this with the attached file:
> {code}
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast
> to org.apache.pdfbox.cos.COSNumber
> at
> org.apache.pdfbox.pdmodel.common.COSArrayList.convertIntegerCOSArrayToList(COSArrayList.java:278)
> at org.apache.pdfbox.pdmodel.font.PDFont.getWidths(PDFont.java:739)
> at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidth(PDFont.java:805)
> at org.apache.pdfbox.pdmodel.font.PDFont.getFontWidth(PDFont.java:312)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processText(PDFStreamEngine.java{code}
> The cause is this:
> {code}
> 22 0 obj
> [ 583 536 ...... 694 23 0 R 875 708 ...... ]
> endobj
> 23 0 obj
> 542
> endobj
> {code}
> The indirect reference looks stupid, but isn't forbidden. The spec just
> mentions that there must be an array of widths.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)