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

Johannes Porzelt commented on PDFBOX-3952:
------------------------------------------

Ok, now I found the problem... We were preprocessing the documents if the files 
size exceeded a configured max size. This "destroyed" them.

Thank you very much for your support!

> IllegalArgumentException: root cannot be null for Canon scanned PDFs
> --------------------------------------------------------------------
>
>                 Key: PDFBOX-3952
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3952
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.7, 3.0.0
>         Environment: java version "1.8.0_144"
>            Reporter: Johannes Porzelt
>         Attachments: 01b Die Wettbewerbskräfte neu betrachtet - 5 Forces 
> 2.pdf, 02e Die 3 Regeln für den Erfolg - Spitzenleistungen-3.pdf
>
>
> We encounter the below exception while trying to process the attached 
> documents.
> All issues that produced a similar or same exception seemed to fixed in our 
> version (2.0.7).
> PDFs are scans of _Canon iR-ADV C5250_
> {code:java}
> java.lang.IllegalArgumentException: root cannot be null
>       at org.apache.pdfbox.pdmodel.PDPageTree.<init>(PDPageTree.java:75)
>       at 
> org.apache.pdfbox.pdmodel.PDDocumentCatalog.getPages(PDDocumentCatalog.java:129)
>       at 
> org.apache.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:1398)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to