You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/02/17 20:43:13 UTC

[jira] [Commented] (PDFBOX-2687) ClassCastException when trying to get OutputIntents or add to it

    [ https://issues.apache.org/jira/browse/PDFBOX-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14324756#comment-14324756 ] 

ASF subversion and git services commented on PDFBOX-2687:
---------------------------------------------------------

Commit 1660475 from [~msahyoun] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1660475 ]

PDFBOX-2687 avoid ClassCastException when adding an OutputIntent; rename getter for OutputIntents

> ClassCastException when trying to get OutputIntents or add to it
> ----------------------------------------------------------------
>
>                 Key: PDFBOX-2687
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2687
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.8.6, 1.8.8, 2.0.0
>            Reporter: Maruan Sahyoun
>            Assignee: Maruan Sahyoun
>             Fix For: 1.8.9, 2.0.0
>
>
> Form the users mailing list:
> Im trying to call "List<PDOutputIntent> outputIntents = doc.getDocumentCatalog().getOutputIntent();" on https://www.dropbox.com/s/u7gwgxpq1656x4d/acme_invoice-42_a1b.pdf?dl=0 <https://www.dropbox.com/s/u7gwgxpq1656x4d/acme_invoice-42_a1b.pdf?dl=0>
> The Stacktrace is:
> Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast to org.apache.pdfbox.cos.COSArray
> 	at org.apache.pdfbox.pdmodel.PDDocumentCatalog.addOutputIntent(PDDocumentCatalog.java:474)
> 	
> Should the code really contain a cast in PDDocumentCatalog.java:474



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org