API referenceImport & Output APIs

pdfSetXFAStream

Replace the bytes of packet Index (0-based); the packet's name is kept.

Replace the bytes of packet Index (0-based); the packet's name is kept. A NULL/empty buffer empties the packet.

C
BOOL32 __stdcall pdfSetXFAStream(PPDF IPDF, uint32_t Index, void* Buffer, uint32_t BufSize);

Return valueTRUE on success; FALSE for an out-of-range index.

Private data blobs

C# (P/Invoke)

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

Setters

Exported names

pdfSetXFAStream

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.