Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.SetXFAStream

Replaces the contents of an XFA stream with new contents.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 9.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetXFAStream"; PDF; Index; XML )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Index The index for the stream.
From 0 to DynaPDF.GetXFAStreamCount-1.
0
XML The XML to use.

Result

Returns OK or error.

Description

Replaces the contents of an XFA stream with new contents.
Index must be a valid XFA resource index. XFA streams can be enumerated with DynaPDF.GetXFAStream / DynaPDF.GetXFAStreamCount.
The function does not check whether the provided XFA buffer is valid. The buffer is written to the stream as is.

To edit a XFA form, you may use DynaPDF.GetXFAStream first to query the data, use our XML functions to edit the form values and then use this function to write it back.

See also SetXFAStream function in DynaPDF manual.

See also

Release notes

Blog Entries

This function checks for a license.

Created 20th October 2019, last changed 8th February 2021


DynaPDF.SetWordSpacing - DynaPDF.ShowDifferences