Chris Naude created PDFBOX-1347:
-----------------------------------
Summary: java.lang.ClassCastException:
org.apache.pdfbox.cos.COSString cannot be cast to
org.apache.pdfbox.cos.COSDictionary
Key: PDFBOX-1347
URL: https://issues.apache.org/jira/browse/PDFBOX-1347
Project: PDFBox
Issue Type: Bug
Affects Versions: 1.7.0
Environment: Windows 7 with Oracle JDK 1.6.0_33
Reporter: Chris Naude
I'm attempting to merge two pdf's and I am getting this exception. This only
occurs for specific PDF files. I am able to merge other PDF's without any
issues.
java.lang.ClassCastException: org.apache.pdfbox.cos.COSString cannot be cast to
org.apache.pdfbox.cos.COSDictionary
at
org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineNode.getFirstChild(PDOutlineNode.java:161)
at
org.apache.pdfbox.util.PDFMergerUtility.appendDocument(PDFMergerUtility.java:339)
at
org.apache.pdfbox.util.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:188)
at me.cnaude.pdfboxgui.MainForm$MergeThread.run(MainForm.java:355)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira