[ 
https://issues.apache.org/jira/browse/PDFBOX-2615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Lehmkühler resolved PDFBOX-2615.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0
                   1.8.9

The object stream contains endobj marker although those tags shall not be used 
within object streams. I've solved the issue by smply skipping those "optional" 
tags.

> 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: 1.8.8, 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.8.9, 2.0.0
>
>         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)

Reply via email to