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

Exception in thread "main" java.io.IOException: Missing root object specification in trailer.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.0.16
    • None
    • Parsing
    • None

    Description

      Hey,

      I'm currently experiencing this kind of error and I dont have any clue how to fix it. Tried it now for a couple of hours, but still no clue how to get rid of this error.

      I'm using the latest command-line jar of pdfbox (2.0.16) for the merging process.

      Hopefully someone has a clue how I'm able to fix this asap.

       

      Exception in thread "main" java.io.IOException: Missing root object specification in trailer.
      at org.apache.pdfbox.pdfparser.COSParser.parseTrailerValuesDynamically(COSParser.java:2876)
      at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:175)
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:226)
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1070)
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:991)
      at org.apache.pdfbox.multipdf.PDFMergerUtility.legacyMergeDocuments(PDFMergerUtility.java:451)
      at org.apache.pdfbox.multipdf.PDFMergerUtility.mergeDocuments(PDFMergerUtility.java:346)
      at org.apache.pdfbox.tools.PDFMerger.merge(PDFMerger.java:70)
      at org.apache.pdfbox.tools.PDFMerger.main(PDFMerger.java:49)
      at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:81)

       

      Best Regards,

      Elias

      Attachments

        Activity

          People

            Unassigned Unassigned
            Snowi Elias Mauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: