[
https://issues.apache.org/jira/browse/PDFBOX-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14641096#comment-14641096
]
Tilman Hausherr commented on PDFBOX-2903:
-----------------------------------------
I made the change I explained in the mailing list. Please test it and give
feedback. You can get a new version within a few hours here:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/1.8.11-SNAPSHOT/
(look at the date of the file)
Btw, if it works, please try also with the 2.0 version. I couldn't find the
problem in the code there.
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.0-SNAPSHOT/
download a jar and run
java -jar XXXX.jar PDFReader XXX.pdf
If the file is displayed, then all is OK.
> ClassCastException at PDFParser:667
> -----------------------------------
>
> Key: PDFBOX-2903
> URL: https://issues.apache.org/jira/browse/PDFBOX-2903
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 1.8.10
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 1.8.11
>
>
> from "skenny" in the user mailing list:
> I'm using PDFMergerUtility to merge a number of PDF input streams and write
> them to an HTTP response output stream. One of the PDFs is failing at line
> 667 in PDFParser:
> {code}
> final COSName objectType = (COSName)strmObj.getItem( COSName.TYPE );
> {code}
> The result of getItem(COSName.TYPE) is a COSString (value "Metadata") and
> not a COSName.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]