[
https://issues.apache.org/jira/browse/PDFBOX-6076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022502#comment-18022502
]
ASF subversion and git services commented on PDFBOX-6076:
---------------------------------------------------------
Commit 1928737 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1928737 ]
PDFBOX-6076: avoid ClassCastexception, use ON as default
> ClassCastException in PDOptionalContentProperties.getBaseState()
> ----------------------------------------------------------------
>
> Key: PDFBOX-6076
> URL: https://issues.apache.org/jira/browse/PDFBOX-6076
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.34, 3.0.5 PDFBox
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Priority: Major
> Labels: OCGs
> Fix For: 2.0.35, 3.0.6 PDFBox, 4.0.0
>
> Attachments: 1758719834210-0296375.pdf
>
>
> java.lang.ClassCastException: class org.apache.pdfbox.cos.COSString cannot
> be cast to class org.apache.pdfbox.cos.COSName
> (org.apache.pdfbox.cos.COSString and org.apache.pdfbox.cos.COSName are in
> unnamed module of loader 'app')
>
> org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.getBaseState(PDOptionalContentProperties.java:210)
>
> org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentProperties.isGroupEnabled(PDOptionalContentProperties.java:309)
>
> org.apache.pdfbox.rendering.PDFRenderer.isGroupEnabled(PDFRenderer.java:449)
> org.apache.pdfbox.rendering.PageDrawer.isHiddenOCG(PageDrawer.java:2269)
> org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:1162)
> This is because {{Root/OCProperties/D/BaseState}} is a string, but we expect
> a name.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]