Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3952

IllegalArgumentException: root cannot be null for Canon scanned PDFs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.7, 3.0.0 PDFBox
    • None
    • Parsing
    • None
    • java version "1.8.0_144"

    Description

      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

      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)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            johannesp Johannes Porzelt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: