You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/11/18 18:35:34 UTC
[jira] [Comment Edited] (PDFBOX-2504) ClassCastException in
preflight: PDAnnotationWidget cannot be cast to PDField
[ https://issues.apache.org/jira/browse/PDFBOX-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14216470#comment-14216470 ]
Tilman Hausherr edited comment on PDFBOX-2504 at 11/18/14 5:34 PM:
-------------------------------------------------------------------
This is legit:
{quote}
A field’s children in the hierarchy may also include widget annotations (see 12.5.6.19, “Widget Annotations”)
{quote}
Object 832 is a widget annotation; its parent is 1114 which has 4 kids, all of them are Widget Annotations. Going up the parent hierarchy one finds a field element at 1469. So all there is to do is to validate this widget annotation.
was (Author: tilman):
https://issues.apache.org/jira/browse/PDFBOX-2504
This is legit:
{quote}
A field’s children in the hierarchy may also include widget annotations (see 12.5.6.19, “Widget Annotations”)
{quote}
Object 832 is a widget annotation; its parent is 1114 which has 4 kids, all of them are Widget Annotations. Going up the parent hierarchy one finds a field element at 1469. So all there is to do is to validate this widget annotation.
> ClassCastException in preflight: PDAnnotationWidget cannot be cast to PDField
> -----------------------------------------------------------------------------
>
> Key: PDFBOX-2504
> URL: https://issues.apache.org/jira/browse/PDFBOX-2504
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight
> Affects Versions: 1.8.8, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Attachments: 032618.pdf
>
>
> {code}
> java.lang.ClassCastException: org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget cannot be cast to org.apache.pdfbox.pdmodel.interactive.form.PDField
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.valideField(AcroFormValidationProcess.java:155)
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.valideField(AcroFormValidationProcess.java:155)
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.valideField(AcroFormValidationProcess.java:155)
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.valideField(AcroFormValidationProcess.java:155)
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.exploreFields(AcroFormValidationProcess.java:107)
> at org.apache.pdfbox.preflight.process.AcroFormValidationProcess.validate(AcroFormValidationProcess.java:60)
> at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:73)
> at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:88)
> at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:168)
> at pdfboxpageimageextraction.PreflightTest.main(PreflightTest.java:44)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)