You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2015/01/21 01:45:34 UTC

[jira] [Comment Edited] (PDFBOX-2615) IllegalArgumentException in PDPageTree constructor: root cannot be null

    [ https://issues.apache.org/jira/browse/PDFBOX-2615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14284916#comment-14284916 ] 

John Hewson edited comment on PDFBOX-2615 at 1/21/15 12:45 AM:
---------------------------------------------------------------

Looks like a parser issue, the root contains a Pages object 3 0 R, but calling getObject() on it returns null but it should return a valid object.


was (Author: jahewson):
Looks like a parser issues, the root contains a Pages object 3 0 R, but calling getObject() on it returns null but it should return a valid object.

> IllegalArgumentException in PDPageTree constructor: root cannot be null
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-2615
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2615
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>         Attachments: PDFBOX-2615.pdf
>
>
> {code}
> Exception in thread "main" java.lang.IllegalArgumentException: root cannot be null
>         at org.apache.pdfbox.pdmodel.PDPageTree.<init>(PDPageTree.java:62)
>         at org.apache.pdfbox.pdmodel.PDDocumentCatalog.getPages(PDDocumentCatalog.java:125)
>         at org.apache.pdfbox.pdmodel.PDDocument.getPages(PDDocument.java:970)
>         at org.apache.pdfbox.tools.PDFReader.openPDFFile(PDFReader.java:341)
>         at org.apache.pdfbox.tools.PDFReader.main(PDFReader.java:326)
>         at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:80)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)