Component: TPdf · Unit: PDFium
Ottaa tilannevedoksen kaikista upotetuista XFA-paketeista TXfaPacketList-kokoelmassa
Syntax
function GetXfaFormPackets: TXfaPacketList;
Description
Snapshots all XML packets embedded in the PDF document's XFA dictionary, returning them as a collection of TXfaPacket entries
Requires Active to be True
Remarks
- The list is empty for non-XFA documents or when the packet reader is unavailable
- This method executes a single-call snapshot of the entire XFA payload, carrying name and content pairs for all XML packets
- No public PDFium API exists to modify or write these packets back, meaning the returned collection is strictly read-only
Example
var
Packets: TXfaPacketList;
I: Integer;
begin
if not Pdf1.Active then Exit;
Packets := Pdf1.GetXfaFormPackets;
for I := 0 to Packets.Count - 1 do
Memo1.Lines.Add(Packets[I].Name);
end;
See Also