[
https://issues.apache.org/jira/browse/PDFBOX-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14021412#comment-14021412
]
Tilman Hausherr commented on PDFBOX-1347:
-----------------------------------------
It would be helpful if you attach one/two sample PDFs.
> 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
> Components: Utilities
> Affects Versions: 1.7.0, 1.8.0
> Environment: Windows 7 with Oracle JDK 1.6.0_33
> Reporter: Chris Naude
> Attachments: Image 1.png
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)