ASP.NET MVC

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfXfaType - ASP.NETMVC API Reference | Syncfusion

    Show / Hide Table of Contents

    Enum PdfXfaType

    Represents the XFA document type

    Namespace: Syncfusion.Pdf.Xfa
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public enum PdfXfaType
    Examples
    //Create a new XFA document 
    PdfXfaDocument document = new PdfXfaDocument();
    //Create a new XFA form
    PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595);
    //Create a new XFA Field
    PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30));
    //Set the default value
    field.Value = DateTime.Now;
    //Add the field to the form
    form.Fields.Add(field);
    document.XfaForm = form;
    //Save the document           
    document.Save("output.pdf", PdfXfaType.Dynamic);
    //Close the document
    document.Close();
    'Create a new XFA document 
    Dim document As New PdfXfaDocument()
    'Create a new XFA form
    Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595)
    'Create a new XFA Field
    Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30))
    'Set the default value
    field.Value = DateTime.Now
    'Add the field to the form
    form.Fields.Add(field)
    document.XfaForm = form
    'Save the document           
    document.Save("output.pdf", PdfXfaType.Dynamic)
    'Close the document
    document.Close()

    Fields

    Name Description
    Dynamic

    Preserved the XFA fields only.

    Static

    Preserved both the XFA and Acroform fields.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved