You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2016/11/01 18:01:58 UTC

[jira] [Closed] (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:all-tabpanel ]

Maruan Sahyoun closed PDFBOX-2761.
----------------------------------
    Resolution: Cannot Reproduce

[~jasonmackin] I've tried with 2.0.0, 2.0.1, 2.0.2, 2.0.4 and trunk and can't reproduce the issue. If that is still valid please reopen together with a small test to reproduce the issue.

> 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.pdf
>
>
> 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