You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Ravi Thapa (Jira)" <ji...@apache.org> on 2022/05/30 13:24:00 UTC
[jira] [Updated] (PDFBOX-5449) Error occurred while processing the File:expected='endstream' actual='' at offset 142940
[ https://issues.apache.org/jira/browse/PDFBOX-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ravi Thapa updated PDFBOX-5449:
-------------------------------
Description:
Hi All
I am getting this error for a specific file while loading.
PDDocument doc = PDDocument.load(new File(k))
Error occurred while processing the File:expected='endstream' actual='' at offset 142940.
I am not sure what is the problem here. Can you guys recommend what i need to fix this issue.
Below is the exception stacktrace
java.io.IOException: expected='endstream' actual='' at offset 142940
at org.apache.pdfbox.pdfparser.BaseParser.parseCOSStream(BaseParser.java:607)
at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:650)
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:203)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1220)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1187)
at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1158)
at org.apache.pdfbox.pdmodel.PDDocument$load.call(Unknown Source)
was:
Hi All
I am getting this error for a specific file while loading.
PDDocument doc = PDDocument.load(new File(k))
Error occurred while processing the File:expected='endstream' actual='' at offset 142940.
I am not sure what is the problem here. Can you guys recommend what i need to fix this issue.
> Error occurred while processing the File:expected='endstream' actual='' at offset 142940
> ----------------------------------------------------------------------------------------
>
> Key: PDFBOX-5449
> URL: https://issues.apache.org/jira/browse/PDFBOX-5449
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.8.9
> Environment: Development
> Reporter: Ravi Thapa
> Priority: Critical
>
> Hi All
> I am getting this error for a specific file while loading.
> PDDocument doc = PDDocument.load(new File(k))
> Error occurred while processing the File:expected='endstream' actual='' at offset 142940.
> I am not sure what is the problem here. Can you guys recommend what i need to fix this issue.
>
> Below is the exception stacktrace
>
> java.io.IOException: expected='endstream' actual='' at offset 142940
> at org.apache.pdfbox.pdfparser.BaseParser.parseCOSStream(BaseParser.java:607)
> at org.apache.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:650)
> at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:203)
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1220)
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1187)
> at org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1158)
> at org.apache.pdfbox.pdmodel.PDDocument$load.call(Unknown Source)
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org