Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

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

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


DynaPDF.SetWordSpacing - DynaPDF.ShowDifferences

Feedback: Report problem or ask question.