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

IllegalArgumentException in PDPageTree constructor: root cannot be null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.6, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      When merging this pdf with another pdf, I get this exception. It looks similar to PDFBOX-2615.

      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:128)
      	at org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:484)
      	at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:213)
      

      Attachments

        1. rootCannotBeNull.pdf
          142 kB
          Jay Askren

        Activity

          People

            lehmi Andreas Lehmkühler
            aruld Arul Dhesiaseelan
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: