[ https://issues.apache.org/jira/browse/PDFBOX-2345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14131514#comment-14131514 ]
Tilman Hausherr edited comment on PDFBOX-2345 at 9/12/14 1:25 PM: ------------------------------------------------------------------ To be fair, you probably didn't write that "-" yourself, it is likely the result of another error in the PDF. qpdf has this to say about the file: {quote} PDFBOX-2345.pdf (xref stream, file position 12450): Cross-reference stream data has the wrong size; expected = 308; actual = 309 qpdf: operation succeeded with warnings; resulting file may have some problems {quote} was (Author: tilman): To be fair, you probably didn't write that "-" yourself, it is likely the result of another error in the PDF. qpdf has this to say about the file: {quote} PDFBOX-2345.pdf (xref stream, file position 12450): Cross-reference stream data has the wrong size; expected = 308; actual = 309 {quote} > IndexOutOfBoundsException reading encrypted pdf > ----------------------------------------------- > > Key: PDFBOX-2345 > URL: https://issues.apache.org/jira/browse/PDFBOX-2345 > Project: PDFBox > Issue Type: Bug > Components: Parsing > Affects Versions: 1.8.6, 1.8.7, 2.0.0 > Reporter: simon steiner > Attachments: out.pdf > > > java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar > WriteDecodedDoc -nonSeq out.pdf > Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 4, > Size: 4 > at java.util.ArrayList.rangeCheck(ArrayList.java:635) > at java.util.ArrayList.get(ArrayList.java:411) > at > org.apache.pdfbox.pdfparser.PDFObjectStreamParser.parse(PDFObjectStreamParser.java:110) -- This message was sent by Atlassian JIRA (v6.3.4#6332)