Table of Contents

Class ExportFormSettings

Namespace
Syncfusion.Pdf.Parsing
Assembly
Syncfusion.Pdf.Portable.dll

Class that represents the form field export settings.

public class ExportFormSettings
Inheritance
ExportFormSettings
Inherited Members

Examples

// Load an existing document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/ChineseValue.pdf");
// Load an existing form
PdfLoadedForm loadedForm = loadedDocument.Form;
//Create new instance for export form settings.
ExportFormSettings settings = new ExportFormSettings();
//Gets or sets the data format to export form fields. 
settings.DataFormat = DataFormat.Fdf;
//Gets or sets the value that indicates the form name of the PDF form is export.
settings.FormName   = "formname";
//Export the form data to a file with specified ExportFormSettings.
loadedForm.ExportData("ChineseValue.Fdf", settings);
//Save the PDF document
loadedDocument.Save("ChineseValue.pdf");
//close the document
loadedDocument.Close(true);
'Load an existing document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Data/ChineseValue.pdf")
'Load an existing form
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
'Create new instance for export form settings.
Dim settings As ExportFormSettings = New ExportFormSettings()
'Gets or sets the data format to export form fields. 
settings.DataFormat = DataFormat.Fdf
'Gets or sets the value that indicates the form name of the PDF form is export. 
settings.FormName   = "formname"
'Export the form data to a file with specified ExportFormSettings.
loadedForm.ExportData("ChineseValue.Fdf", settings)
'Save the PDF document
loadedDocument.Save("ChineseValue.pdf")
'close the document
loadedDocument.Close(True)

Constructors

ExportFormSettings()

public ExportFormSettings()

Properties

DataFormat

Gets or sets data format to export form fields.

public DataFormat DataFormat { get; set; }

Property Value

DataFormat

Examples

// Load an existing document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/ChineseValue.pdf");
// Load an existing form
PdfLoadedForm loadedForm = loadedDocument.Form;
//Create new instance for export form settings.
ExportFormSettings settings = new ExportFormSettings();
//Gets or sets the data format to export form fields. 
settings.DataFormat = DataFormat.Fdf;       
//Export the form data to a file with specified ExportFormSettings.
loadedForm.ExportData("ChineseValue.Fdf", settings);
//Save the PDF document
loadedDocument.Save("ChineseValue.pdf");
//close the document
loadedDocument.Close(true);
'Load an existing document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Data/ChineseValue.pdf")
'Load an existing form
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
'Create new instance for export form settings.
Dim settings As ExportFormSettings = New ExportFormSettings()
'Gets or sets the data format to import form fields. 
settings.DataFormat = DataFormat.Fdf
'Export the form data to a file with specified ExportFormSettings.
loadedForm.ExportData("ChineseValue.Fdf", settings)
'Save the PDF document
loadedDocument.Save("ChineseValue.pdf")
'close the document
loadedDocument.Close(True)

FormName

Gets or sets the value that indicates the form name of the PDF form is export.

public string FormName { get; set; }

Property Value

string

Examples

// Load an existing document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("../../Data/ChineseValue.pdf");
// Load an existing form
PdfLoadedForm loadedForm = loadedDocument.Form;
//Create new instance for export form settings.
ExportFormSettings settings = new ExportFormSettings();
//Gets or sets the value that indicates the form name of the PDF form is export. 
settings.FormName   = "formname";
//Export the form data to a file with specified ExportFormSettings.
loadedForm.ExportData("ChineseValue.Fdf", settings);
//Save the PDF document
loadedDocument.Save("ChineseValue.pdf");
//close the document
loadedDocument.Close(true);
'Load an existing document
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("../../Data/ChineseValue.pdf")
'Load an existing form
Dim loadedForm As PdfLoadedForm = loadedDocument.Form
'Create new instance for export form settings.
Dim settings As ExportFormSettings = New ExportFormSettings()
'Gets or sets the value that indicates the form name of the PDF form is export.
settings.FormName   = "formname"
'Export the form data to a file with specified ExportFormSettings.
loadedForm.ExportData("ChineseValue.Fdf", settings)
'Save the PDF document
loadedDocument.Save("ChineseValue.pdf")
'close the document
loadedDocument.Close(True)