You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2017/03/21 17:02:42 UTC
[jira] [Commented] (PDFBOX-3728)
org.apache.pdfbox.cos.COSDictionary cannot be cast to
org.apache.pdfbox.cos.COSStream
[ https://issues.apache.org/jira/browse/PDFBOX-3728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934889#comment-15934889 ]
Andreas Lehmkühler commented on PDFBOX-3728:
--------------------------------------------
The pdf is broken. It looks like someone edited it by hand to get some sort of template. Where did you get that? Did you create it yourself?
> org.apache.pdfbox.cos.COSDictionary cannot be cast to org.apache.pdfbox.cos.COSStream
> -------------------------------------------------------------------------------------
>
> Key: PDFBOX-3728
> URL: https://issues.apache.org/jira/browse/PDFBOX-3728
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering, Text extraction
> Affects Versions: 2.0.4, 2.0.5
> Environment: Ubuntu + Windows, JRE 1.8.0 121
> Reporter: Peter Pinnau
> Attachments: test.pdf
>
>
> The attached PDF document produces an exception in rendering or text extraction.
> Stacktrace:
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary cannot be cast to org.apache.pdfbox.cos.COSStream
> at org.apache.pdfbox.pdmodel.PDPage.getContents(PDPage.java:157)
> at org.apache.pdfbox.pdfparser.PDFStreamParser.<init>(PDFStreamParser.java:92)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:485)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
> at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:206)
> at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145)
> at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:68)
> at biz.pinnau.rcp.pdf.java.PDFBoxHandler.renderCurrentImage(PDFBoxHandler.java:52)
> at biz.pinnau.rcp.pdf.SWTPDFPositionChooser$12.run(SWTPDFPositionChooser.java:403)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org