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

Merging PDF results in „java.io.IOException: expected='>' actual='3'”

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.3
    • Component/s: None
    • Labels:
      None

      Description

      Merging attached files twice via PDFMerger results in the following exception:

      • java -jar pdfbox-app-1.8.2.jar PDFMerger specialpdf.pdf otherpdf.pdf tmp.pdf (OK)
      • java -jar pdfbox-app-1.8.2.jar PDFMerger tmp.pdf otherpdf.pdf out.pdf (Exception)

      java.io.IOException: expected='>' actual='3'
      at org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionary(BaseParser.java:384)
      at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:1236)
      at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:559)
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:188)
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1192)
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1159)
      at org.apache.pdfbox.util.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:181)
      at org.apache.pdfbox.PDFMerger.merge(PDFMerger.java:68)
      at org.apache.pdfbox.PDFMerger.main(PDFMerger.java:44)
      at org.apache.pdfbox.PDFBox.main(PDFBox.java:83)

        Attachments

        1. specialpdf.pdf
          881 kB
          Gerhard Temper
        2. otherpdf.pdf
          79 kB
          Gerhard Temper

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gerhardt Gerhard Temper
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: