Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63077174F9 for ; Tue, 17 Feb 2015 17:27:43 +0000 (UTC) Received: (qmail 82608 invoked by uid 500); 17 Feb 2015 17:27:43 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 82589 invoked by uid 500); 17 Feb 2015 17:27:43 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 82578 invoked by uid 99); 17 Feb 2015 17:27:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2015 17:27:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.133.104.168] (HELO www168.your-server.de) (213.133.104.168) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2015 17:27:37 +0000 Received: from [88.198.220.132] (helo=sslproxy03.your-server.de) by www168.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1) (envelope-from ) id 1YNlvY-0005Jv-Ka for users@pdfbox.apache.org; Tue, 17 Feb 2015 18:27:16 +0100 Received: from [79.242.118.74] (helo=mbp001.intern) by sslproxy03.your-server.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1YNlvV-0001hM-5J for users@pdfbox.apache.org; Tue, 17 Feb 2015 18:27:13 +0100 From: Maruan Sahyoun Content-Type: multipart/alternative; boundary="Apple-Mail=_392CED2B-4B7B-4BC3-A594-C86E806EEC4F" Message-Id: <00347840-9BB9-403E-8E28-13DC83C650F3@fileaffairs.de> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: ClassCastException in PDDocumentCatalog.java:474 Date: Tue, 17 Feb 2015 18:27:09 +0100 References: <07FD3D8E-BCE6-412F-A940-E189FEA62BA7@fileaffairs.de> <3ECCC530-D15F-43D6-A8C6-735D62829D33@gmail.com> <10FFC28A-CB64-4973-8FAE-35248B1AC33A@fileaffairs.de> <2ABDC56E-80B4-4C4F-B534-CA950D728A5D@gmail.com> To: users@pdfbox.apache.org In-Reply-To: <2ABDC56E-80B4-4C4F-B534-CA950D728A5D@gmail.com> X-Mailer: Apple Mail (2.1878.6) X-Authenticated-Sender: sahyoun@fileaffairs.de X-Virus-Scanned: Clear (ClamAV 0.98.5/20069/Mon Feb 16 19:04:55 2015) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_392CED2B-4B7B-4BC3-A594-C86E806EEC4F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 : > tried with 1.8.6 and 1.8.8.=20 >=20 >> Am 17.02.2015 um 16:38 schrieb Maruan Sahyoun = : >>=20 >> which version of PDFBox are you using? >>=20 >> Maruan >>=20 >> Am 17.02.2015 um 16:36 schrieb Vadim Bauer : >>=20 >>> fyi >>> the item is =3D COSObject{5, 0} >>> and baseObject is a COSArray >>>=20 >>> = 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}) = }]} >>>=20 >>>=20 >>>> Am 17.02.2015 um 16:28 schrieb Maruan Sahyoun = : >>>>=20 >>>> Hi, >>>>=20 >>>> I'd need to look into the PDF in more detail but the output intent = should be an array (of dictionaries). >>>>=20 >>>> BR >>>> Maruan >>>>=20 >>>> Am 17.02.2015 um 15:59 schrieb Vadim Bauer : >>>>=20 >>>>> Im trying to call "List outputIntents =3D = doc.getDocumentCatalog().getOutputIntent();" on = https://www.dropbox.com/s/u7gwgxpq1656x4d/acme_invoice-42_a1b.pdf?dl=3D0 = = >>>>>=20 >>>>> The Stacktrace is: >>>>>=20 >>>>> 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(PDDocumentCata= log.java:474) >>>>> =09 >>>>>=20 >>>>> Should the code really contain a cast in = PDDocumentCatalog.java:474 >>>>=20 >>>=20 >>>=20 >>> = --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>> For additional commands, e-mail: users-help@pdfbox.apache.org >>>=20 >>=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org >=20 --Apple-Mail=_392CED2B-4B7B-4BC3-A594-C86E806EEC4F--