Tilman Hausherr created PDFBOX-3487:
---------------------------------------
Summary: 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: 2.0.2, 2.0.3, 2.1.0
Reporter: Tilman Hausherr
Assignee: Tilman Hausherr
Fix For: 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]