Hi Nancy,
Document doc = new Document(@“C:\pdftest\Test.pdf”);<o:p></o:p>
CheckboxField field = doc.Form[“rbTITerm”] as CheckboxField;<o:p></o:p>
field.Value = “Annually”;<o:p></o:p>
doc.Save(@“C:\pdftest\Test_Filled.pdf”);<o:p></o:p>
Furthermore, in order to get list of valid checkbox names, new property AllowedStates was added to CheckboxField.
foreach (string state in field.AllowedStates)<o:p></o:p>
Console.WriteLine(state);
Please provide the namespaces for your examples.
Hi Nancy,
Aspose.Pdf.Document
doc = new Aspose.Pdf.Document(@“C:\pdftest\Test.pdf”);<o:p></o:p>
Aspose.Pdf.InteractiveFeatures.Forms.CheckboxField field = doc.Form["rbTITerm"] as Aspose.Pdf.InteractiveFeatures.Forms.CheckboxField;
field.Value = "Annually";
doc.Save(@"C:\pdftest\Test_Filled.pdf");
Please feel free to contact us for any further assistnace.
Best Regards,