API referenceImport & 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.

C
BOOL32 __stdcall pdfGetXFAStream(PPDF IPDF, uint32_t Index, PPDFXFAStream OutStrm);

Return valueTRUE on success; FALSE for an out-of-range index, NULL out-pointer, or invalid instance handle.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Import & Output APIs
Category

Getters

Exported names

pdfGetXFAStream

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.