Return-Path: X-Original-To: apmail-pdfbox-dev-archive@www.apache.org Delivered-To: apmail-pdfbox-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60CDE7EED for ; Thu, 25 Aug 2011 04:43:12 +0000 (UTC) Received: (qmail 57747 invoked by uid 500); 25 Aug 2011 04:43:12 -0000 Delivered-To: apmail-pdfbox-dev-archive@pdfbox.apache.org Received: (qmail 57476 invoked by uid 500); 25 Aug 2011 04:43:02 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 57457 invoked by uid 99); 25 Aug 2011 04:42:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 04:42:56 +0000 X-ASF-Spam-Status: No, hits=-2000.9 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 04:42:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 07A4CCE656 for ; Thu, 25 Aug 2011 04:42:32 +0000 (UTC) Date: Thu, 25 Aug 2011 04:42:32 +0000 (UTC) From: "Adam Nichols (JIRA)" To: dev@pdfbox.apache.org Message-ID: <1775273217.12334.1314247352027.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1718561395.27833.1313071287802.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (PDFBOX-1088) Class PDDocument Method getPageMap returns a ClassCastException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PDFBOX-1088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090766#comment-13090766 ] Adam Nichols commented on PDFBOX-1088: -------------------------------------- Is this patch for non-conforming PDFs? The only things allowed to be in the /Pages object are pages, or arrays of pages, or arrays of arrays or pages, etc. What types of objects were you getting which were unable to be cast? Also, what line was throwing the exception? Is there a sample PDF which we can use to duplicate the error and use for JUnit tests? > Class PDDocument Method getPageMap returns a ClassCastException > --------------------------------------------------------------- > > Key: PDFBOX-1088 > URL: https://issues.apache.org/jira/browse/PDFBOX-1088 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 1.6.0 > Environment: Windows XP > Reporter: Nghi Nguyen > Fix For: 1.7.0 > > Attachments: PDDocument.patch > > > Trying to get the map of bookmarks to page numbers by using method getPageMap but throws a java.lang.ClassCastException: org.apache.pdfbox.pdmodel.PDPage -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira