FlattenFormFieldsTaggedOnPageRange
Form fields, Tagged PDF, page ranges
Flattens every eligible field on selected pages while retaining or creating static form semantics
Syntax
function FlattenFormFieldsTaggedOnPageRange(const PageRange: WideString;
UpdateAppearance: Integer): Integer;
Parameters
| Parameter | Description |
|---|---|
PageRange | Page range expression such as 1,3,5-9 or All |
UpdateAppearance | Nonzero rebuilds each normal appearance before flattening |
Return values
The number of fields successfully flattened and removed, or 0 when the page range is invalid or no field qualifies
Remarks
Fields whose appearance or existing Widget tag association cannot be converted are skipped and remain interactive
See also
FlattenFormFieldTagged, FlattenFormFieldsOnPageRange, GetFormFieldPage