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

IllegalArgumentException: resourceDictionary is null in PDFMerger (2)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.0.3, 3.0.0 PDFBox
    • Fix Version/s: 2.0.3, 3.0.0 PDFBox
    • Component/s: Utilities
    • Labels:
      None

      Description

      As reported in PDFBOX-2546 by Miklos Krivan

      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

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

              Dates

              • Created:
                Updated:
                Resolved: