menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ExportFormSettings - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ExportFormSettings

    Class that represents the form field export settings.

    Inheritance
    System.Object
    ExportFormSettings
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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
    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)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved