[ https://issues.apache.org/jira/browse/PDFBOX-1846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870963#comment-13870963 ]
vakhtang koroghlishvili commented on PDFBOX-1846: ------------------------------------------------- oh.. yes... you are right! :) thanks :) > NonSequentialPDFParser Error > ---------------------------- > > Key: PDFBOX-1846 > URL: https://issues.apache.org/jira/browse/PDFBOX-1846 > Project: PDFBox > Issue Type: Bug > Components: Parsing > Affects Versions: 1.8.4 > Reporter: vakhtang koroghlishvili > Assignee: Timo Boehme > Attachments: NULLS.jpg, NonSequentialPDFParser.java.patch, > testNUlll.pdf > > > What happens when you have a document and there is many NULL-s (p.s it is > zeros in byte) at the end of the document? Someone send me document like > this. It was created by one software. > No Problem.... Then I try to parse it... and we have one problem: > Exception in thread "main" java.io.IOException: Missing end of file marker > '%%EOF' > at > org.apache.pdfbox.pdfparser.NonSequentialPDFParser.getStartxrefOffset(NonSequentialPDFParser.java:619) > at > org.apache.pdfbox.pdfparser.NonSequentialPDFParser.initialParse(NonSequentialPDFParser.java:329) > at > org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parse(NonSequentialPDFParser.java:767) > I'm attaching sample document, Image, and fixing patch. -- This message was sent by Atlassian JIRA (v6.1.5#6160)