[
https://issues.apache.org/jira/browse/PDFBOX-5400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17512022#comment-17512022
]
Oliver Schmidtmer commented on PDFBOX-5400:
-------------------------------------------
To me it seems the xref/trailer at the end references an older xref table and
overrides some objects with newer ones.
Is it possilve that "/prev" references in the trailer are not handled?
{code:java}
xref (at 672274)
1 7
0000000000 65535 f
0000000009 00000 n 1
0000671785 00000 n 2
0000671882 00000 n 3 (old)
0000672069 00000 n 4
0000672127 00000 n 5 (old)
0000672178 00000 n 6 (old)
trailer
<<
/Size 7
/Root 5 0 R
/Info 6 0 R
>>
startxref
672274
%%EOF
xref (at 676375)
0 1
0000000000 65535 f
3 1
0000672492 00000 n 3
5 3
0000672655 00000 n 5
0000672715 00000 n 6
0000672852 00000 n 7
trailer
<</Size 8/Root 5 0 R/Info 6 0
R/ID[<D302B74AE38AE543991C9CD77C23B7EB><D302B74AE38AE543991C9CD77C23B7EB>]/Prev
672274>>
startxref
676375
{code}
> Page tree root must be a dictionary
> -----------------------------------
>
> Key: PDFBOX-5400
> URL: https://issues.apache.org/jira/browse/PDFBOX-5400
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 2.0.26
> Reporter: Tilman Hausherr
> Priority: Major
> Labels: regression
> Attachments: 4ECBGZDM5GUZG7UT75RV5GTUFWF5TSXK.pdf
>
>
> worked in 2.0.25
> {noformat}
> Caused by: java.io.IOException: Page tree root must be a dictionary
> org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:198)
> org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:226)
> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1107)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]