PDFium Delphi Component Docs

SetFormFieldFlagsAt method

Component: TPdf  ·  Unit: PDFium
Sets the Flags bit field on the form field at the given coordinates

Syntax

procedure SetFormFieldFlagsAt(X, Y: Single; const Flags: TPdfFormFieldFlags);

Description

Writes the Flags bit field on the form field sitting at the given coordinates

Use it to toggle ReadOnly, Required, Multiline, Password and friends without fetching the index again

Wraps the matching PDFium API and surfaces it as a TPdf instance member, so you never have to juggle raw FPDF_DOCUMENT handles yourself

Remarks

Example

if Pdf1.Active then
  Pdf1.SetFormFieldFlagsAt(100, 700, [ffReadOnly]);

See Also

FormFieldInfoAt, FormFieldAt