GetDirtyFormAppearanceCount

Form fields, performance

Description

Returns the number of unique visible Widget object references changed during the current document session and still awaiting appearance regeneration

Syntax

Delphi

Function TPDFlib.GetDirtyFormAppearanceCount: Integer;

Return values

0No current-session Widget appearance is pending, or the document has no AcroForm
Positive valueThe number of deduplicated Widget appearances pending regeneration

Remarks

Repeated changes to the same Widget occupy one dirty-set entry, while a changed logical parent field contributes each drawable descendant Widget once

Calculated successor fields changed by RecalculateFormFields join the same dirty set

The tracker is in memory and begins empty when a document is loaded, so it cannot infer appearances already missing before the current session; use RegenerateFormAppearances for a complete imported-document pass

See also

RegenerateDirtyFormAppearances, RegenerateFormAppearances, SetNeedAppearances