pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dinesh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PDFBOX-4443) Error: End-of-File, expected line
Date Thu, 24 Jan 2019 14:55:00 GMT

     [ https://issues.apache.org/jira/browse/PDFBOX-4443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dinesh updated PDFBOX-4443:
---------------------------
    Description: 
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]

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

ExtractText failed with the following exception:
java.io.IOException: Error: End-of-File, expected line
        at org.apache.pdfbox.pdfparser.BaseParser.readLine(BaseParser.java:1489)
        at org.apache.pdfbox.pdfparser.PDFParser.parseHeader(PDFParser.java:298)
        at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:173)
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1211)
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1176)
        at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1101)
        at org.apache.pdfbox.ExtractText.startExtraction(ExtractText.java:212)
        at org.apache.pdfbox.ExtractText.main(ExtractText.java:85)
        at org.apache.pdfbox.PDFBox.main(PDFBox.java:58)



> Error: End-of-File, expected line
> ---------------------------------
>
>                 Key: PDFBOX-4443
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4443
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 2.0.13
>         Environment: Linux 
> pdfbox 1.8.2 
>            Reporter: Dinesh
>            Priority: Critical
>              Labels: linux, pdf, pdfbox, textExtraction
>             Fix For: 1.8.2
>
>
> 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]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message