I have attached an example project that includes a document from a customer that cannot be modified (protected). The document has a checkbox field that has sub fields. I am trying to figure out how to check one of the sub fields. See the source code for the details:
Hi Darin,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thank you for sharing the sample application.
I am able to reproduce your mentioned issue regarding selection of the checkboxes. Your issue has been registered in our issue tracking system for further investigation as PDFNEWNET-34520. We will inform you via this forum thread regarding any updates.
Sorry for the inconvenience,
Hi Darin,
Document doc = new
Document(@“C:\pdftest\Test.pdf”);<o:p></o:p>
CheckboxField field = doc.Form["rbTITerm"] as CheckboxField;
field.Value = "Annually";
doc.Save(@"C:\pdftest\Test_Filled.pdf");
Furthermore, in order to get list of valid checkbox names, new property AllowedStates was added to CheckboxField (It will be available with the release of Aspose.Pdf for .NET 7.6.0)
foreach (string state in field.AllowedStates)
Console.WriteLine(state);
The issues you have found earlier (filed as PDFNEWNET-34520) have been fixed in Aspose.Pdf for .NET 7.6.0.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.