PDFium Delphi Component Docs

XFA property

Component: TPdf  ·  Unit: PDFium
Returns True when the currently open document contains an XFA form (full or foreground)

Syntax

property XFA: Boolean; // read-only

Description

Read-only property that returns True when FormType is ftXfaFull or ftXfaForeground on the currently open document

To read the raw XFA XML packets embedded in the document, use GetXfaPacketCount and GetXfaPacketContent

Wraps the corresponding PDFium form-type check and exposes it as a TPdf instance member so consumers do not have to manage FPDF_DOCUMENT handles directly

Remarks

Example

Pdf1.Active := True;
if Pdf1.XFA then
  ShowMessage('XFA packets: ' + IntToStr(Pdf1.GetXfaPacketCount));

See Also

FormType, XfaBStrHelpersAvailable, V8FeaturesAvailable