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

Error: End-of-File, expected line

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Cannot Reproduce
    • 2.0.13
    • None
    • Parsing
    • Linux

    Description

      I am using the latest version of pdfbox.

      I am able to extraxt the file as normal stream in java 8 and open as pdf.

      But when try to load with pdfbox getting below error

      Getting this exception when filename is passed from shell script in linux.

      java.io.IOException: Error: End-of-File, expected line
      at org.apache.pdfbox.pdfparser.BaseParser.readLine(BaseParser.java:1121) ~[pdfbox-2.0.13.jar:2.0.13]
      at org.apache.pdfbox.pdfparser.COSParser.parseHeader(COSParser.java:2574) ~[pdfbox-2.0.13.jar:2.0.13]
      at org.apache.pdfbox.pdfparser.COSParser.parsePDFHeader(COSParser.java:2553) ~[pdfbox-2.0.13.jar:2.0.13]
      at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:219) ~[pdfbox-2.0.13.jar:2.0.13]
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1200) ~[pdfbox-2.0.13.jar:2.0.13]
      at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1173) ~[pdfbox-2.0.13.jar:2.0.13]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dineshld Dinesh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: