Application.pdf (580.2 KB)
A manually checked checkbox is cleared after a textbox value has been set.
// Set license
Aspose.Pdf.Document doc = new Aspose.Pdf.Document(@"c:\Temp\Application.pdf");
var checkField = (Aspose.Pdf.Forms.CheckboxField)doc.Form.Fields.First(f => f.FullName == "Customer");
checkField.Checked = true;
var field = doc.Form.Fields.First(f => f.FullName == "Primary Street Address");
field.Value = "abc"; // Comment out line to have "Customer" checkbox remain checked
doc.Save(@"c:\Temp\Saved.pdf");
The Export Value of the checkbox is changing from “On” to “Yes” on save.
Confirmed that this stopped working from v23.11 onwards.