API reference › Import & Output APIs
pdfGetXFAStream
Read one XFA packet (name + bytes) by 0-based index.
Purpose — Read one XFA packet (name + bytes) by 0-based index.
Description — Fills the caller's TPDFXFAStream (Name, Data, Size, StructSize). The name and data pointers reference instance-owned copies that remain valid until the next pdfGetXFAStream call on the same instance — copy them out before reading another packet.
BOOL32 __stdcall pdfGetXFAStream(PPDF IPDF, uint32_t Index, PPDFXFAStream OutStrm);
Return value — TRUE on success; FALSE for an out-of-range index, NULL out-pointer, or invalid instance handle.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Getters
pdfGetXFAStream
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.