PDFium Component Docs

GetXfaTemplate method

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

Syntax

function GetXfaTemplate: TBytes;

Description

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

Requires the document to be active (Active property set to True)

Remarks

Example

var
  TemplateBytes: TBytes;
begin
  if not Pdf1.Active then Exit;
  TemplateBytes := Pdf1.GetXfaTemplate;
  // process template XML
end;

See Also

GetXfaConfig GetXfaDatasets GetXfaFormPackets