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

ASF subversion and git services commented on PDFBOX-3717:
---------------------------------------------------------

Commit 1787546 from [~lehmi] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1787546 ]

PDFBOX-3717: check if the data after the last EOF marker is some valid pdf 
content or just some garbage

> java.io.IOException: Missing root object specification in trailer
> -----------------------------------------------------------------
>
>                 Key: PDFBOX-3717
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3717
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.4
>            Reporter: Tilman Hausherr
>              Labels: regression
>         Attachments: 069020.pdf
>
>
> java.io.IOException: Missing root object specification in trailer.
> {code}
> java.io.IOException: Missing root object specification in trailer.
>     
> org.apache.pdfbox.pdfparser.COSParser.parseTrailerValuesDynamically(COSParser.java:2156)
>     org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:222)
>     org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:271)
>     org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:987)
>     org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:943)
>     
> org.apache.pdfbox.debugger.PDFDebugger.parseDocument(PDFDebugger.java:1369)
>     org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1283)
>     org.apache.pdfbox.debugger.PDFDebugger.readPDFFile(PDFDebugger.java:1266)
>     org.apache.pdfbox.debugger.PDFDebugger.main(PDFDebugger.java:254)
>     org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:85)
> {code}
> This worked in 2.0.4. Files with the same issue (not attached):
> {code}
> 015664.pdf
> 023505.pdf
> 047586.pdf
> 051613.pdf
> 069020.pdf <= smallest, attached here
> 193175.pdf
> 287698.pdf
> 303385.pdf
> 526394.pdf
> 587123.pdf
> 643304.pdf
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to