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





ImportXFDFDataFromFile Method (GdPicturePDF)
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
 

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
See Also