PDFium Component Docs

GetXfaConfig method

Component: TPdf  ·  Unit: PDFium
Retrieves the raw XML bytes of the XFA config packet from the PDF document

Syntax

function GetXfaConfig: TBytes;

Description

Retrieves the raw XML bytes representing the config packet from the document's XFA metadata structure

Requires the document to be active (Active property set to True) and contain XFA form content; returns an empty array otherwise

Remarks

Example

var
  ConfigBytes: TBytes;
begin
  if not Pdf1.Active then Exit;
  ConfigBytes := Pdf1.GetXfaConfig;
  // process ConfigBytes
end;

See Also

GetXfaDatasets GetXfaTemplate GetXfaFormPackets