Class ExportFormSettings
Class that represents the form field export settings.
Inheritance
System.Object
ExportFormSettings
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.Pdf.Parsing
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class ExportFormSettings
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 | Description |
---|---|
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 | Description |
---|---|
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)