Tilman Hausherr created PDFBOX-2542:
---------------------------------------

             Summary: IllegalArgumentException: root must be of type Pages
                 Key: PDFBOX-2542
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2542
             Project: PDFBox
          Issue Type: Bug
          Components: Parsing
    Affects Versions: 2.0.0
            Reporter: Tilman Hausherr
         Attachments: 249776.pdf

{code}
java.lang.IllegalArgumentException: root must be of type Pages
        at org.apache.pdfbox.pdmodel.PDPageTree.<init>(PDPageTree.java:66)
        at 
org.apache.pdfbox.pdmodel.PDDocumentCatalog.getPages(PDDocumentCatalog.java:125)
        at 
org.apache.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:1175)
{code}
The cause is this
{code}
<<
/Count 11 
/Kids [ 100 0 R 141 0 R ]
>>
endobj
{code}
/Type /Pages  is missing.



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

Reply via email to