How to read the values of radio button in the pdf?


After going through your documentation I found this method GetOnState(Field fld) to get radio button’s option field value from:

Is that the only way or is there any simpler method like:



In more recent versions of PDFNet simpler methods for getting and setting whether radio buttons are selected were added. For example to get whether a radio button is selected you can now use fld.GetValueAsBool(); and to set the button as selected you can use fld.SetValue(true);.