FlattenFormFieldsTaggedOnPageRange

Form fields, Tagged PDF, page ranges

« Back to documentation index

Flattens every eligible field on selected pages while retaining or creating static form semantics

Syntax

function FlattenFormFieldsTaggedOnPageRange(const PageRange: WideString;
  UpdateAppearance: Integer): Integer;

Parameters

ParameterDescription
PageRangePage range expression such as 1,3,5-9 or All
UpdateAppearanceNonzero 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