function GetXfaConfig: TBytes;
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
var
ConfigBytes: TBytes;
begin
if not Pdf1.Active then Exit;
ConfigBytes := Pdf1.GetXfaConfig;
// process ConfigBytes
end;