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 1202010CD6 for ; Tue, 17 Feb 2015 15:28:47 +0000 (UTC) Received: (qmail 26909 invoked by uid 500); 17 Feb 2015 15:28:46 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 26887 invoked by uid 500); 17 Feb 2015 15:28:46 -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 26876 invoked by uid 99); 17 Feb 2015 15:28:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2015 15:28:46 +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 (nike.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 15:28:20 +0000 Received: from [88.198.220.130] (helo=sslproxy01.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 1YNk4Q-0007Ra-NC for users@pdfbox.apache.org; Tue, 17 Feb 2015 16:28:18 +0100 Received: from [79.242.118.74] (helo=mbp001.intern) by sslproxy01.your-server.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1YNk4N-00063i-DR for users@pdfbox.apache.org; Tue, 17 Feb 2015 16:28:15 +0100 From: Maruan Sahyoun Content-Type: multipart/alternative; boundary="Apple-Mail=_664931CB-7242-4C57-A21D-50B1044CD234" Message-Id: <07FD3D8E-BCE6-412F-A940-E189FEA62BA7@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 16:28:11 +0100 References: To: users@pdfbox.apache.org In-Reply-To: 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=_664931CB-7242-4C57-A21D-50B1044CD234 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 : > 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 --Apple-Mail=_664931CB-7242-4C57-A21D-50B1044CD234--