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

IllegalArgumentException: resourceDictionary is null in PDFMerger (2)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2, 2.0.3, 3.0.0 PDFBox
    • 2.0.3, 3.0.0 PDFBox
    • Utilities
    • None

    Description

      As reported in PDFBOX-2546 by mkrivan

      Caused by: java.lang.IllegalArgumentException: resourceDictionary is null
      at org.apache.pdfbox.pdmodel.PDResources.<init>(PDResources.java:70)
      at org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:559)
      at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:261)
      

      The cause is an empty PDPage, i.e. without resources.

      (Required; inheritable) A dictionary containing any resources required by the page (see 7.8.3, "Resource Dictionaries"). If the page requires no resources, the value of this entry shall be an empty dictionary. Omitting the entry entirely indicates that the resources shall be inherited from an ancestor node in the page tree.

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: