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

IllegalArgumentException: root cannot be null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.8
    • Fix Version/s: None
    • Component/s: Parsing
    • Labels:
    • Environment:
      Windows 10
    • Flags:
      Important

      Description

      I got a pdf,,, in which pdfbox gives errors while parsing it.

      Exception in thread "main" 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:1411)
      

      This did not happen with 2.0.7.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lehmi Andreas Lehmkühler
                Reporter:
                savan savan patel
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: