GdPicture.NET.14
GdPicture14 Namespace / GdPicturePDF Class / ImportXFDFDataFromFile Method
The file path of the data source document. Supports only well formed XFDF files.
Set this parameter to true if you want to import form fields data, otherwise set it to false.
Set this parameter to true if you want to import annotations data, otherwise set it to false.
Example





In This Topic
ImportXFDFDataFromFile Method (GdPicturePDF)
In This Topic
Imports XFDF form fields and annotation data from file specified by the provided file path.
Syntax
'Declaration
 
Public Function ImportXFDFDataFromFile( _
   ByVal FilePath As String, _
   ByVal ImportFormFields As Boolean, _
   ByVal ImportAnnotations As Boolean _
) As GdPictureStatus
public GdPictureStatus ImportXFDFDataFromFile( 
   string FilePath,
   bool ImportFormFields,
   bool ImportAnnotations
)
public function ImportXFDFDataFromFile( 
    FilePath: String;
    ImportFormFields: Boolean;
    ImportAnnotations: Boolean
): GdPictureStatus; 
public function ImportXFDFDataFromFile( 
   FilePath : String,
   ImportFormFields : boolean,
   ImportAnnotations : boolean
) : GdPictureStatus;
public: GdPictureStatus ImportXFDFDataFromFile( 
   string* FilePath,
   bool ImportFormFields,
   bool ImportAnnotations
) 
public:
GdPictureStatus ImportXFDFDataFromFile( 
   String^ FilePath,
   bool ImportFormFields,
   bool ImportAnnotations
) 

Parameters

FilePath
The file path of the data source document. Supports only well formed XFDF files.
ImportFormFields
Set this parameter to true if you want to import form fields data, otherwise set it to false.
ImportAnnotations
Set this parameter to true if you want to import annotations data, otherwise set it to false.

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.

We strongly recommend always checking this status first.

Remarks
This method is only allowed for use with non-encrypted documents.
Example
How to import XFDF data from file.
Using pdf = New GdPicturePDF
    pdf.LoadFromFile("input.pdf")
    pdf.ImportXFDFDataFromFile("annotations.xfdf", False, True)
    pdf.SaveToFile("output.pdf")
End Using
using (GdPicturePDF pdf = new GdPicturePDF)
{
    pdf.LoadFromFile("input.pdf");
    pdf.ImportXFDFDataFromFile("annotations.xfdf", false, true);
    pdf.SaveToFile("output.pdf");
}
See Also