SetXFAFromString

Form fields

Description

Sets the document's XFA form data to the specified XML string.

Syntax

Delphi

function TPDFlib.SetXFAFromString(Const Source: AnsiString; Options: Integer): Integer;

ActiveX

Function PDFlib::SetXFAFromString(Source As String, Options As Long) As Long

DLL

int DLSetXFAFromString(int InstanceID, char * Source, int Options);

Parameters

SourceThe new XML string to store as the XFA form data.
OptionsReserved for future use. Should be set to 0.

Return values

0The XFA form data could not be set, this usually means the document does not have an AcroForm dictionary.
1The XFA form data was set successfully.