You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/10/03 17:39:00 UTC

[jira] [Commented] (PDFBOX-3948) NumberFormatException in bfSearchForObjStreams

    [ https://issues.apache.org/jira/browse/PDFBOX-3948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16190027#comment-16190027 ] 

ASF subversion and git services commented on PDFBOX-3948:
---------------------------------------------------------

Commit 1811016 from [~lehmi] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1811016 ]

PDFBOX-3948: eliminate newlines in object streams and added handling for object streams to rebuildTrailer

> NumberFormatException in bfSearchForObjStreams
> ----------------------------------------------
>
>                 Key: PDFBOX-3948
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3948
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.8
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>              Labels: regression
>         Attachments: EUWO6SQS5TM4VGOMRD3FLXZHU35V2CP2.pdf
>
>
> {code}
> java.lang.NumberFormatException: For input string: "245
> 89"
>     java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>     java.lang.Long.parseLong(Long.java:589)
>     java.lang.Long.parseLong(Long.java:631)
>     org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjStreams(COSParser.java:1766)
>     org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjects(COSParser.java:1529)
>     org.apache.pdfbox.pdfparser.COSParser.getBFCOSObjectOffsets(COSParser.java:1445)
>     org.apache.pdfbox.pdfparser.COSParser.rebuildTrailer(COSParser.java:1905)
> {code}
> This worked in 2.0.7. The exception happens with only 2 files from the tests by Tim.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org