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

Andreas Lehmkühler resolved PDFBOX-3956.
----------------------------------------
    Resolution: Fixed

I've found a solution to fix this regression.

> Truncated pdf can't be repaired anymore
> ---------------------------------------
>
>                 Key: PDFBOX-3956
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3956
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.8
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>              Labels: regression
>             Fix For: 2.0.9, 3.0.0
>
>         Attachments: N4CWPKUJDQIPQ6YLYKPLOZJBTSYGQEYR.pdf
>
>
> [[email protected]]'s last test run reveals another minor regression. The 
> truncated file attached to the ticket can't be read anymore. The issue is 
> related to the changes made in PDFBOX-3936.
> The following exception is thrown
> {code}
> java.io.IOException: Error reading stream, expected='endstream' actual='' at 
> offset 271297
>     org.apache.pdfbox.pdfparser.COSParser.parseCOSStream(COSParser.java:1078)
>     org.apache.pdfbox.pdfparser.COSParser.parseFileObject(COSParser.java:821)
>     
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:782)
>     
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:713)
>     org.apache.pdfbox.pdfparser.COSParser.parseDictObjects(COSParser.java:673)
>     org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:205)
>     org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:240)
>     org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1012)
>     org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:950)
>     
> org.apache.pdfbox.debugger.PDFDebugger.parseDocument(PDFDebugger.java:1312)
>     org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1233)
>     org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1218)
>     org.apache.pdfbox.debugger.PDFDebugger.main(PDFDebugger.java:1209)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to