pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Nichols (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-1088) Class PDDocument Method getPageMap returns a ClassCastException
Date Thu, 25 Aug 2011 04:42:32 GMT

    [ 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


View raw message