Class ExportFormSettings
Class that represents the form field export settings.
Inheritance
System.Object
ExportFormSettings
Namespace: Syncfusion.Pdf.Parsing
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public class ExportFormSettings : Object
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()
Declaration
public ExportFormSettings()
Properties
DataFormat
Gets or sets data format to export form fields.
Declaration
public DataFormat DataFormat { get; set; }
Property Value
Type |
---|
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.
Declaration
public string FormName { get; set; }
Property Value
Type |
---|
System.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)