[ https://issues.apache.org/jira/browse/PDFBOX-2841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14618914#comment-14618914 ]
Tilman Hausherr commented on PDFBOX-2841: ----------------------------------------- [~msahyoun] this code with the attached santander file {code} PDRadioButton radioButton = (PDRadioButton) pdf.getDocumentCatalog().getAcroForm().getField("Familienstand"); System.out.println(radioButton.getOnValues()); {code} shows this {quote} verwitwet, geschieden, verheiratet, getrennt, ledig, getrennt, verwitwet, geschieden, verheiratet, ledig {quote} Should we return a Set<String> instead? Elements appear several times because the form has identical field widgets on different pages. > Make it easier to work with RadioButton Groups > ---------------------------------------------- > > Key: PDFBOX-2841 > URL: https://issues.apache.org/jira/browse/PDFBOX-2841 > Project: PDFBox > Issue Type: Improvement > Components: AcroForm > Affects Versions: 2.0.0 > Reporter: Maruan Sahyoun > Assignee: Maruan Sahyoun > Fix For: 2.0.0 > > > The current implementation of Radio Buttons in PDFBox 2.0 should be improved > by > - renaming getOptions() to make it clearer that this gets the potential > export values (although the dictionary entry is called /Opt) > - make it easier to inspect the possible values one can set for the various > individual buttons -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org