function GetXfaTemplate: TBytes;
Retrieves the raw XML bytes representing the template packet from the document's XFA metadata structure
تتطلب أن يكون المستند نشطًا (خاصية Active معيَّنة إلى True)
template من XFA
var
TemplateBytes: TBytes;
begin
if not Pdf1.Active then Exit;
TemplateBytes := Pdf1.GetXfaTemplate;
// process template XML
end;