pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: ClassCastException in PDDocumentCatalog.java:474
Date Tue, 17 Feb 2015 17:27:09 GMT
Hi,

I created https://issues.apache.org/jira/browse/PDFBOX-2687 and I already have a fix for it.

Maruan

Am 17.02.2015 um 17:55 schrieb Vadim Bauer <bauer.vadim@gmail.com>:

> tried with 1.8.6 and 1.8.8. 
> 
>> Am 17.02.2015 um 16:38 schrieb Maruan Sahyoun <sahyoun@fileaffairs.de>:
>> 
>> which version of PDFBox are you using?
>> 
>> Maruan
>> 
>> Am 17.02.2015 um 16:36 schrieb Vadim Bauer <bauer.vadim@gmail.com>:
>> 
>>> fyi
>>> the item is = COSObject{5, 0}
>>> and baseObject is a COSArray
>>> 
>>> COSArray{[COSDictionary{(COSName{DestOutputProfile}:COSDictionary{(COSName{Alternate}:COSName{DeviceRGB})
(COSName{Filter}:COSName{FlateDecode}) (COSName{Length}:COSInt{2574}) (COSName{N}:COSInt{3})
}) (COSName{Info}:COSString{sRGB IEC61966-2.1}) (COSName{OutputCondition}:COSString{sRGB IEC61966-2.1})
(COSName{OutputConditionIdentifier}:COSString{sRGB IEC61966-2.1}) (COSName{S}:COSName{GTS_PDFA1})
(COSName{Type}:COSName{OutputIntent}) }]}
>>> 
>>> 
>>>> Am 17.02.2015 um 16:28 schrieb Maruan Sahyoun <sahyoun@fileaffairs.de>:
>>>> 
>>>> Hi,
>>>> 
>>>> I'd need to look into the PDF in more detail but the output intent should
be an array (of dictionaries).
>>>> 
>>>> BR
>>>> Maruan
>>>> 
>>>> Am 17.02.2015 um 15:59 schrieb Vadim Bauer <bauer.vadim@gmail.com>:
>>>> 
>>>>> 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
>>>> 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message