ImportXFDFDataFromFile Method (GdPicturePDF)
Imports XFDF form fields and annotation data from file specified by the provided file path.
public function ImportXFDFDataFromFile(
: String;
: Boolean;
: Boolean
): GdPictureStatus;
public function ImportXFDFDataFromFile(
: String,
: boolean,
: boolean
) : GdPictureStatus;
'Declaration
Public Function ImportXFDFDataFromFile( _
ByVal As String, _
ByVal As Boolean, _
ByVal 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.
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");
}