[
https://issues.apache.org/jira/browse/PDFBOX-3487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15477430#comment-15477430
]
ASF subversion and git services commented on PDFBOX-3487:
---------------------------------------------------------
Commit 1760058 from [~tilman] in branch 'pdfbox/branches/1.8'
[ https://svn.apache.org/r1760058 ]
PDFBOX-3487: avoid ClassCastException if /ID is not an array
> ClassCastException in COSWriter.write() when saving PDF
> -------------------------------------------------------
>
> Key: PDFBOX-3487
> URL: https://issues.apache.org/jira/browse/PDFBOX-3487
> Project: PDFBox
> Issue Type: Bug
> Components: Writing
> Affects Versions: 1.8.12, 1.8.13, 2.0.2, 2.0.3, 2.1.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.3, 2.1.0
>
>
> {code}
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.pdfbox.cos.COSInteger cannot be cast to
> org.apache.pdfbox.cos.COSArray
> at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1349)
> at org.apache.pdfbox.pdfwriter.COSWriter.write(COSWriter.java:1287)
> at org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1160)
> at pdfboxpageimageextraction.LoadSave.main(LoadSave.java:22)
> {code}
> The cause is a bad /ID, that isn't an array.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]