PDFium Delphi Component Docs

GetXfaDatasets method

Component: TPdf  ·  Unit: PDFium
Retrieves the original XFA datasets XML bytes from the PDF document

Syntax

function GetXfaDatasets: TBytes;

Description

Retrieves the original XML byte sequence representing the datasets packet from the document's XFA structure

Requires Active to be True and valid XFA form metadata inside the PDF

Remarks

Example

var
  DataBytes: TBytes;
begin
  if not Pdf1.Active then Exit;
  DataBytes := Pdf1.GetXfaDatasets;
  // read datasets XML payload
end;

See Also

GetXfaConfig GetXfaTemplate GetXfaFormPackets