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

IllegalArgumentException: root cannot be null for Canon scanned PDFs

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.7, 3.0.0 PDFBox
    • Fix Version/s: None
    • Component/s: Parsing
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: