Component: TPdf · Unit: PDFium
Retrieves the original XFA datasets XML bytes from the PDF document
Syntax
function GetXfaDatasets: TBytes;
Description
Retrieves the original XML byte sequence representing the datasets packet from the document's XFA structure
Requires Active to be True and valid XFA form metadata inside the PDF
Remarks
- Returns the original, unmodified datasets packet bytes as stored in the PDF; it does not reflect live in-memory value changes made interactively by users
- PDFium does not expose a public API to write or serialize updated dynamic XFA dataset trees back into the PDF structure
Example
var
DataBytes: TBytes;
begin
if not Pdf1.Active then Exit;
DataBytes := Pdf1.GetXfaDatasets;
end;
See Also