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

IllegalArgumentException: root cannot be null

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.8
    • None
    • Parsing
    • Windows 10
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment