[
https://issues.apache.org/jira/browse/PDFBOX-2924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14662359#comment-14662359
]
ASF subversion and git services commented on PDFBOX-2924:
---------------------------------------------------------
Commit 1694741 from [~tilman] in branch 'pdfbox/branches/1.8'
[ https://svn.apache.org/r1694741 ]
PDFBOX-2924: avoid classcastexception when ViewerPreferences is not a dictionary
> ClassCastException when doing PDFSplit
> --------------------------------------
>
> Key: PDFBOX-2924
> URL: https://issues.apache.org/jira/browse/PDFBOX-2924
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 1.8.10, 1.8.11, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 1.8.11, 2.0.0
>
>
> {code}
> Exception in thread "main" java.lang.ClassCastException:
> org.apache.pdfbox.cos.COSArray cannot be cast to
> org.apache.pdfbox.cos.COSDictionary
> at
> org.apache.pdfbox.pdmodel.PDDocumentCatalog.getViewerPreferences(PDDocumentCatalog.java:136)
> at
> org.apache.pdfbox.multipdf.Splitter.createNewDocument(Splitter.java:190)
> at
> org.apache.pdfbox.multipdf.Splitter.createNewDocumentIfNecessary(Splitter.java:154)
> at org.apache.pdfbox.multipdf.Splitter.processPage(Splitter.java:204)
> at org.apache.pdfbox.multipdf.Splitter.processPages(Splitter.java:128)
> at org.apache.pdfbox.multipdf.Splitter.split(Splitter.java:63)
> at org.apache.pdfbox.tools.PDFSplit.split(PDFSplit.java:171)
> at org.apache.pdfbox.tools.PDFSplit.main(PDFSplit.java:59)
> at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:85)
> {code}
> The cause is a file that has ViewerPreferences as an array (should be a
> dictionary).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]