THPDFHeadlessDocument.SetButtonFieldValueWithAppearance
procedure SetButtonFieldValueWithAppearance(FieldIndex: Integer;
const OnState: AnsiString; Checked: Boolean; const TrueTypeFont: SysUtils.TBytes;
const Options: THPDFHeadlessTextAppearanceOptions);
Updates a writable checkbox or radio Btn field with genuine name-valued V and widget AS states together with explicit Off and on-state Form XObjects
OnState is a raw bounded export-state name other than Off; Checked false writes Off, whilst Checked true writes the selected export name
Checkboxes draw rectangular borders and a Unicode check glyph; radios draw circular borders and a selected dot with the supplied embeddable TrueType font
Radio widgets keep their existing individual on-state names; only widgets matching OnState get selected, and ambiguous or unknown states leave the previous graph in place
Push buttons use SetPushButtonAppearance; read-only fields, denied form filling, signed-document editing policies, cancellation and aggregate object budgets all stay enforced