[
https://issues.apache.org/jira/browse/PDFBOX-2631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14291521#comment-14291521
]
Maruan Sahyoun commented on PDFBOX-2631:
----------------------------------------
the getKids() method returns the information from the /Kids entry in the field
dictionary. A field may or may not have kids as for fields containing only a
single annotation the field dictionary and the annotation dictionary can be
merged i.e. there is only a single dictionary describing both. That’s the case
for the [Group2] and [Check Box2] fields. So it’s correct that getKids()
returns null. You can get the fields annotation with field.getWidget().
> Single radio-button group has no children
> -----------------------------------------
>
> Key: PDFBOX-2631
> URL: https://issues.apache.org/jira/browse/PDFBOX-2631
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 1.8.8
> Environment: Windows 7, Eclipse, JRE 1.8.0_25
> Reporter: Gilad Denneboom
> Priority: Minor
> Attachments: test2.pdf
>
>
> (Continuation of https://issues.apache.org/jira/browse/PDFBOX-2617)
> A group of radio-buttons is an object of the PDRadioCollection class and each
> child of that group is an PDCheckbox object.
> However, if the group only contains one widget the getKids method of the
> PDRadioCollection object returns null.
> There should be at least one child for any such group.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]