function GetXfaTemplate: TBytes;
بایتهای خام XML نمایندهٔ بستهٔ template را از ساختار فرادادهٔ XFA سند بازیابی میکند
نیازمند آن است که سند فعال باشد (ویژگی Active روی True تنظیم شده باشد)
template از XFA نداشته باشد یک آرایهٔ خالی برمیگرداند
var
TemplateBytes: TBytes;
begin
if not Pdf1.Active then Exit;
TemplateBytes := Pdf1.GetXfaTemplate;
// process template XML
end;