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

Andreas Lehmkühler resolved PDFBOX-1737.
----------------------------------------

    Resolution: Fixed

I added the fix in revision 1528833 [1] as proposed by Oleg.

The problem was a non accurate index. It doesn't refer to the exact position so 
that we have to skip one whitespace.

Thanks for the contribution!

http://svn.apache.org/r1528833

> Skip whitespaces when resolving a XRef
> --------------------------------------
>
>                 Key: PDFBOX-1737
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1737
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 1.8.2, 2.0.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>             Fix For: 1.8.3, 2.0.0
>
>
> Oleg Krechowetzki reported an issue with the non sequential parser via 
> private mail. He provided a working solution and a test pdf which can't be 
> attached due to privacy reasons.
> The following exception occurs when parsing the pdf in question using the non 
> sequential parser:
> Caused by: java.io.IOException: Error: Expected a long type, actual='xref'
>       at org.apache.pdfbox.pdfparser.BaseParser.readLong(BaseParser.java:1668)
>       at 
> org.apache.pdfbox.pdfparser.BaseParser.readObjectNumber(BaseParser.java:1598)
>       at 
> org.apache.pdfbox.pdfparser.NonSequentialPDFParser.parseXrefObjStream(NonSequentialPDFParser.java:458)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to