THotPDF.RecalculateLoadedFormFields Method
Evaluates supported calculation actions in the loaded AcroForm /CO order
Declaration
function RecalculateLoadedFormFields: Integer;
Return value
Returns the number of target fields recalculated and regenerated
Usage notes
- Supports
AFSimple_CalculateoperationsSUM,AVG,PRD,MIN, andMAX - Reads JavaScript from a string or stream action and routes it through the bounded safe evaluator
- Missing or non-numeric source values contribute zero
- Unsupported or active JavaScript is rejected and never executed
- Each successful result updates
/Vand regenerates the field appearance