menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImportFormSettings - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ImportFormSettings

    Class that represents the form field import settings.

    Inheritance
    System.Object
    ImportFormSettings
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public class ImportFormSettings : Object
    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
    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
    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
    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)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved