[
https://issues.apache.org/jira/browse/PDFBOX-2542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hewson resolved PDFBOX-2542.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
> 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
> Assignee: John Hewson
> Fix For: 2.0.0
>
> 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)