THPDFPage.CreateCheckBox Method
Provides create check box behavior for the page geometry workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function CreateCheckBox(const FieldName, ExportValue: AnsiString; Rectangle: TRect; Checked: boolean= false; Flags: THPDFFormFieldFlags= []): THPDFAcroFormField;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldName | AcroForm field name or field dictionary targeted by the helper |
ExportValue | Input used by CreateCheckBox |
Rectangle | Page area or widget rectangle where the operation is applied |
Checked | Input used by CreateCheckBox |
Flags | Input used by CreateCheckBox |
Return value
Returns a THPDFAcroFormField value
Usage notes
- Use this API in the page geometry workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak