Table of Contents

Class ImportFormSettings

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

Class that represents the form field import settings.

public class ImportFormSettings
Inheritance
ImportFormSettings
Inherited Members

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()

public ImportFormSettings()

Properties

DataFormat

Gets or sets data format to import form fields.

public DataFormat DataFormat { get; set; }

Property Value

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.

public string FormName { get; set; }

Property Value

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.

public bool IgnoreErrors { get; set; }

Property Value

bool

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)