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

Merge documents fails due to IllegalArgumentException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.5
    • Fix Version/s: 2.0.6, 3.0.0 PDFBox
    • Component/s: PDModel
    • Labels:
      None

      Description

      When I tried to merge documents and one of them is a PDF file similar to attached file, I got an IllegalArgumentException. See stacktrace:

      java.lang.IllegalArgumentException: Full
      	at org.apache.pdfbox.pdmodel.PageMode.fromString(PageMode.java:71) ~[pdfbox-2.0.5.jar:2.0.5]
      	at org.apache.pdfbox.pdmodel.PDDocumentCatalog.getPageMode(PDDocumentCatalog.java:440) ~[pdfbox-2.0.5.jar:2.0.5]
      	at org.apache.pdfbox.multipdf.PDFMergerUtility.appendDocument(PDFMergerUtility.java:451) ~[pdfbox-2.0.5.jar:2.0.5]
      	at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:261) ~[pdfbox-2.0.5.jar:2.0.5]
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: