THotPDF.SetLoadedAcroFormCalculationOrder Method
Replaces the AcroForm /CO array with references to resolved terminal field dictionaries in the supplied field-name order, including fields with separate widget children
Declaration
procedure SetLoadedAcroFormCalculationOrder(const FieldNames: array of AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
FieldNames | Ordered field names written into /CO; names that do not match an existing field are skipped |
Return value
This member returns no value
Usage notes
- Fields not registered in
/COdo not run their/AA /Ccalculation action during a full recalculation pass - Qualified terminal field names are supported, including fields with one or more separate
/Subtype /Widgetchildren in/Kidsand terminal fields without widgets; each entry references the field dictionary - Group names and unresolved names are skipped; resolved entries retain the supplied order and duplicate names retain duplicate entries
- An empty array clears
/CO; an empty name raises before the previous array is replaced - A document without an AcroForm retains the existing exception behaviour
- This setter records calculation order only; it does not execute JavaScript or recalculate field values
- Call
SaveLoadedDocumentexplicitly to persist the edited document - The dependency graph built by THotPDF.BuildLoadedFormCalculationGraph follows /CO document order for fields on a dependency cycle