Class ImportFormSettings
Class that represents the form field import settings.
Inheritance
System.Object
ImportFormSettings
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 ImportFormSettings
Examples
// Load an existing document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
// Load an existing form
loadedForm = document.Form;
//Create new instance for import form settings.
ImportFormSettings settings = new ImportFormSettings();
// Gets or sets the data format to import form fields.
settings.DataFormat = DataFormat.Fdf;
//Gets or sets the value that indicates the form name of the PDF form is import.
settings.FormName = "../../FDF_output.pdf";
//Imports the form data from the file with the specified ImportFormSettings.
loadedForm.ImportData("WF_60299.Fdf", settings);
//Save the PDF document
document.Save("WF_60299_Fdf.pdf");
//close the document
document.Close(true);
'Load an existing document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Load an existing form
loadedForm = document.Form
'ImportFormSettings that represents the form field import settings.
Dim settings As ImportFormSettings = New ImportFormSettings()
'Gets or sets the data format to import form fields.
settings.DataFormat = DataFormat.Fdf
'Gets or sets the value that indicates the form name of the PDF form is import.
settings.FormName = "../../FDF_output.pdf"
'Imports the form data from the file with the specified ImportFormSettings.
loadedForm.ImportData("WF_60299.Fdf", settings)
'Save the PDF document
document.Save("WF_60299_Fdf.pdf")
'close the document
document.Close(True)
Constructors
ImportFormSettings()
Declaration
public ImportFormSettings()
Properties
DataFormat
Gets or sets data format to import form fields.
Declaration
public DataFormat DataFormat { get; set; }
Property Value
Type | Description |
---|---|
DataFormat |
Examples
// Load an existing document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
// Load an existing form
loadedForm = document.Form;
//Create new instance for import form settings.
ImportFormSettings settings = new ImportFormSettings();
// Gets or sets the data format to import form fields.
settings.DataFormat = DataFormat.Fdf;
//Gets or sets the value that indicates the form name of the PDF form is import.
settings.FormName = "../../FDF_output.pdf";
//Imports the form data from the file with the specified ImportFormSettings.
loadedForm.ImportData("WF_60299.Fdf", settings);
//Save the PDF document
document.Save("WF_60299_Fdf.pdf");
//close the document
document.Close(true);
'Load an existing document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Load an existing form
loadedForm = document.Form
Dim settings As ImportFormSettings = New ImportFormSettings()
'Gets or sets the data format to import form fields.
settings.DataFormat = DataFormat.Fdf
'Gets or sets the value that indicates the form name of the PDF form is import.
settings.FormName = "../../FDF_output.pdf"
'Imports the form data from the file with the specified ImportFormSettings.
loadedForm.ImportData("WF_60299.Fdf", settings)
'Save the PDF document
document.Save("WF_60299_Fdf.pdf")
'close the document
document.Close(True)
FormName
Gets or sets the value that indicates the form name of the PDF form is import.
Declaration
public string FormName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Examples
// Load an existing document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
// Load an existing form
loadedForm = document.Form;
//Create new instance for import form settings.
ImportFormSettings settings = new ImportFormSettings();
//Gets or sets the value that indicates the form name of the PDF form is import.
settings.FormName = "../../FDF_output.pdf";
// Imports the form data from the file with the specified ImportFormSettings.
loadedForm.ImportData("WF_60299.Fdf", settings);
//Save the PDF document
document.Save("WF_60299_Fdf.pdf");
//close the document
document.Close(true);
'Load an existing document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Load an existing form
loadedForm = document.Form
'Create new instance for import form settings.
Dim settings As ImportFormSettings = New ImportFormSettings()
'Gets or sets the value that indicates the form name of the PDF form is import.
settings.FormName = "../../FDF_output.pdf"
'Imports the form data from the file with the specified ImportFormSettings.
loadedForm.ImportData("WF_60299.Fdf", settings)
'Save the PDF document
document.Save("WF_60299_Fdf.pdf")
'close the document
document.Close(True)
IgnoreErrors
Gets or sets a flag describing whether to ignore errors while importing a PDF form. The default value is false.
Declaration
public bool IgnoreErrors { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Examples
// Load an existing document
PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf");
// Load an existing form
loadedForm = document.Form;
ImportFormSettings settings = new ImportFormSettings();
//Gets or sets a flag describing whether to ignore errors while importing a PDF form. The default value is false
settings.IgnoreErrors = true;
// Imports the form data from the file with the specified ImportFormSettings.
loadedForm.ImportData("WF_60299.Fdf", settings);
//Save the PDF document
document.Save("WF_60299_Fdf.pdf");
//close the document
document.Close(true);
'Load an existing document
Dim document As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf")
'Load an existing form
loadedForm = document.Form
Dim settings As ImportFormSettings = New ImportFormSettings()
'Gets or sets a flag describing whether to ignore errors while importing a PDF form. The default value is false
settings.IgnoreErrors = true;
'Imports the form data from the file with the specified ImportFormSettings.
loadedForm.ImportData("WF_60299.Fdf", settings)
'Save the PDF document
document.Save("WF_60299_Fdf.pdf")
'close the document
document.Close(True)