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

Wolfgang Wachsmuth commented on PDFBOX-4915:
--------------------------------------------

Hi,

sorry for asking in this closed issue. I am not sure if it is correct. I have a 
similar PDF perfectly fine to open in acrobat reader but failing to open with 
PdfBox. I am pretty sure there must be an issue with the PDF but despite 
reading all comments/commits and debugging I am not sure what's wrong. Sadly 
the PDF has some sensible data, so I can not just upload it. 

Can somebody tell me if the xref table is looking fine or to what signs I have 
to look (same exception as OP):

 

{{xref}}
{{0 27}}
{{0000000000 65535 f}}
{{0000000015 00000 n}}
{{0000000651 00000 n}}
{{0000000697 00000 n}}
{{0000004869 00000 n}}
{{0000000096 00000 n}}
{{0000004932 00000 n}}
{{0000005162 00000 n}}
{{0000005405 00000 n}}
{{0000006916 00000 n}}
{{0000008116 00000 n}}
{{0000009174 00000 n}}
{{0000010233 00000 n}}
{{0000011287 00000 n}}
{{0000012842 00000 n}}
{{0000013907 00000 n}}
{{0000015104 00000 n}}
{{0000015377 00000 n}}
{{0000015603 00000 n}}
{{0000015858 00000 n}}
{{0000016166 00000 n}}
{{0000016416 00000 n}}
{{0000016724 00000 n}}
{{0000016958 00000 n}}
{{0000017207 00000 n}}
{{0000069688 00000 n}}
{{0000081953 00000 n}}
{{trailer}}
{{<<}}
{{/Size 27}}
{{/ID [<A19BA66B3D0681037FFFCD696080D002> <9098C70C7453EC40B90D12EBCA76863B>]}}
{{/Root 1 0 R}}
{{/Info 5 0 R}}
{{>>}}

 

The generator of the PDF seems to be 

{{/Producer (StreamServe Communication Server 16.6.2 GA Build 397 \(64 bit\))}}

But I also have PDFs from the same "producer" with working PDF.

 

Thank you!

> "Page tree root must be a dictionary" on PDDocument.load
> --------------------------------------------------------
>
>                 Key: PDFBOX-4915
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4915
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.19
>            Reporter: Gauthier Roebroeck
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 2.0.21, 3.0.0 PDFBox
>
>         Attachments: Black Bullet - Volume 01 - Those Who Would Be Gods [Yen 
> Press][Kobo_Kitzoku].pdf, Screenshot 2020-07-14 at 20.19.40.png
>
>
> Hi,
> i have a PDF file that throws the following exception:
> {{java.io.IOException: Page tree root must be a 
> dictionaryjava.io.IOException: Page tree root must be a dictionary at 
> org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:198) 
> ~[pdfbox-2.0.19.jar:2.0.19] at 
> org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:226) 
> ~[pdfbox-2.0.19.jar:2.0.19] at 
> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1222) 
> ~[pdfbox-2.0.19.jar:2.0.19] at 
> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1122) 
> ~[pdfbox-2.0.19.jar:2.0.19]}}
> This happens when loading the document from an InputStream.
> The document can be opened properly using Preview on Mac.
>  
> I have checked the PDF structure (even though i don't know it very well), 
> from what i can see it could be because the /Pages is not the first element 
> under the /Root.
>  
> !Screenshot 2020-07-14 at 20.19.40.png!



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to