[
https://issues.apache.org/jira/browse/PDFBOX-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
[email protected] updated PDFBOX-276:
-----------------------------------------
Attachment: BaseParser.java
BaseParser.javaPatch_937703.txt
Andreas,
I checked out the Trunk version, applied the changes needed to make it work,
and tested it with the file
that was in the project.
There was another small change that I needed to make to get it to compile in
Eclipse.
For some reason eclipse didn't like new String( int ) So I shoved an empty
string in 4 places.
This was not to fix the bug, this was to get it to compile in my version of
Eclipse.
- String falseString = new String( pdfSource.readFully(5) );
+ String falseString = new String( pdfSource.readFully(5)+"" );
I also replace the BaseParser.java file with the version I tested with.
Peter
> IOException on parsing a PDF file
> ---------------------------------
>
> Key: PDFBOX-276
> URL: https://issues.apache.org/jira/browse/PDFBOX-276
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Priority: Minor
> Attachments: BaseParser.java, BaseParser.javaPatch_937703.txt,
> PDFBOX276-NotIndexedDocument.pdf
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1722594
> Originally submitted by doublep-enw on 2007-05-21 05:10.
> When parsing the attached file, PDFBox throws the following exception:
> java.io.IOException: expected='/' actual='?'--1
> org.pdfbox.io.pushbackinputstr...@159f498
> at org.pdfbox.pdfparser.BaseParser.parseCOSName(BaseParser.java:774)
> at org.pdfbox.pdfparser.BaseParser.parseCOSDictionary(BaseParser.java:217)
> at org.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:910)
> at org.pdfbox.pdfparser.PDFParser.parseObject(PDFParser.java:432)
> at org.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:176)
> The file does look strange inside, but PDF viewers don't seem to care.
> [attachment on SourceForge]
> http://sourceforge.net/tracker/download.php?group_id=78314&atid=552832&aid=1722594&file_id=229983
> NotIndexedDocument.pdf (application/pdf), 8728 bytes
> unparseable file
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.