You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/10/11 02:52:34 UTC
[jira] [Closed] (PDFBOX-1347) java.lang.ClassCastException:
org.apache.pdfbox.cos.COSString cannot be cast to
org.apache.pdfbox.cos.COSDictionary
[ https://issues.apache.org/jira/browse/PDFBOX-1347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson closed PDFBOX-1347.
-------------------------------
Resolution: Cannot Reproduce
We really need sample PDFs to fix this properly.
> 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.3.4#6332)