[ 
https://issues.apache.org/jira/browse/PDFBOX-4704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16987142#comment-16987142
 ] 

Tilman Hausherr commented on PDFBOX-4704:
-----------------------------------------

Please retry with the latest PDFBox version, which is 2.0.17. If you insist on 
using 1.8, then use 1.8.16. In 1.8, use loadNonSeq() instead of load(). If you 
still aren't successful, please attach your PDF.

I assume that with "if I re-saved the file in my machine and again tried and it 
works fine" you mean you open it with Adobe Reader and resave? Yes, Adobe can 
correct corrupt PDFs sometimes. (We can too, but more in the 2.0 version)

> Caused by: java.io.IOException: expected='endstream' actual='' at offset 
> 166140
> -------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4704
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4704
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>         Environment: I am using pdfBox version 1.8.11
>            Reporter: Gowrish
>            Priority: Major
>
> I am facing Caused by: java.io.IOException: expected='endstream' actual='' at 
> offset 166140 error while uploading a 1page PDF file and interestingly if I 
> re-saved the file in my machine and again tried and it works fine.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to