You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Jason Mackin (JIRA)" <ji...@apache.org> on 2015/04/17 17:35:01 UTC
[jira] [Comment Edited] (PDFBOX-2761) Casting error for
PDRadioButton when trying to exportFDF
[ https://issues.apache.org/jira/browse/PDFBOX-2761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14500040#comment-14500040 ]
Jason Mackin edited comment on PDFBOX-2761 at 4/17/15 3:34 PM:
---------------------------------------------------------------
I am not sure if this is related, but the problem sounds similiar to https://issues.apache.org/jira/browse/PDFBOX-50.
was (Author: jasonmackin):
I am not sure if this related, but the problem sounds similiar to https://issues.apache.org/jira/browse/PDFBOX-50.
> Casting error for PDRadioButton when trying to exportFDF
> --------------------------------------------------------
>
> Key: PDFBOX-2761
> URL: https://issues.apache.org/jira/browse/PDFBOX-2761
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.0
> Reporter: Jason Mackin
> Attachments: az101-1.15.0_withholding-form-info.json
>
>
> When trying to exportFDF() in PDAcroForm.java, there is a ClassCastException thrown when addFieldAndChilden(PDFieldTreeNode docField, List<FDFField> fdfFields) is called and the docField is a PDRadioButton that has kids and one is a PDWidget.
> PDRadioButton.getKids() says:
> "This will get all the kids of this field. The values in the list will either be PDWidget or PDField. Normally they will be PDWidget objects unless this is a non-terminal field and they will be child PDField objects."
> But when kids are returned in the addFieldAndChilden method and one is a PDWidget (PDAnnotationWidget in my case), it tries to cast it as a PDFieldTreeNode and throws the exception.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org