[ 
https://issues.apache.org/jira/browse/PDFBOX-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15863956#comment-15863956
 ] 

Scott Coldwell commented on PDFBOX-3683:
----------------------------------------

I think the behavior for getValueAsString should be changed to return the /Opt 
value if it exists instead of the index in the /Opt array.  Using the index 
seems to be an internal PDF concept.  If I'm an author of a PDF and I create 
the options for a radio group, I would not expect to get back a number when one 
is selected.

> Unexpected behavior when setting value for radio button with /Opts entry 
> -------------------------------------------------------------------------
>
>                 Key: PDFBOX-3683
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3683
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.4, 2.0.5, 2.1.0
>            Reporter: Maruan Sahyoun
>             Fix For: 2.1.0
>
>
> Setting the value for a radio button the behavior is unexpected as when 
> setting the value the entries in {{/Opts}} need to be used is there is such 
> entry otherwise the names for the {{On}} values in the normal appearances 
> entries need to be used. When getting the value always the set names entry is 
> returned.
> Also see the discussion at PDFBOX-3656.
> The {{/Opts}} entries shall only be considered when exporting or importing 
> the AcroForm fields data.  



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to