THPDFPage.CreateCheckBox Method
Method summary: THPDFPage.CreateCheckBox Method
Declaration
function CreateCheckBox(const FieldName, ExportValue: AnsiString; Rectangle: TRect; Checked: boolean = false): THPDFAcroFormField;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldName | Name of the form field |
ExportValue | Value exported when the check box is selected |
Rectangle | Widget rectangle on the page |
Checked | Initial checked state |
Flags | Input supplied to CreateCheckBox |
Return value
THPDFAcroFormField wrapper for the created check box
Usage notes
- Use this API in the page geometry workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- Use THPDFPage.AddCheckBox for the simpler one-call workflow
Related APIs
- THPDFPage
- THPDFPage Methods
- AcroForm Support