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 real name-valued V and widget AS states, plus explicit Off and on-state Form XObjects
OnState is a raw bounded export-state name other than Off; Checked false writes Off, while Checked true writes the selected export name
Checkboxes paint rectangular borders and a Unicode check glyph; radios paint circular borders and a selected dot using the supplied embeddable TrueType font
Radio widgets retain their existing individual on-state names; only widgets matching OnState are selected, and ambiguous or unknown states preserve the previous graph
Push buttons use SetPushButtonAppearance; read-only fields, denied form filling, signed-document editing policies, cancellation, and aggregate object budgets remain enforced