[ https://issues.apache.org/jira/browse/PDFBOX-3717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-3717. ---------------------------------------- Resolution: Fixed Assignee: Andreas Lehmkühler Fix Version/s: 2.0.6 I've fixed the regression. The point was to determine if the data after the last EOF marker is some valid pdf content (see the attached pdf) or just garbage (see PDFBOX-3626). > 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 > Assignee: Andreas Lehmkühler > Labels: regression > Fix For: 2.0.6 > > 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