Checkbox becomes unchecked after setting textbox

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.

@bruceb6

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-56368

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as PDFNET-56368) have been fixed in Aspose.PDF for .NET 24.3.