Class SubmitDataFormat
Specifies the enumeration of submit data formats.
Inheritance
System.Object
SubmitDataFormat
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public sealed class SubmitDataFormat : Enum
Examples
//Create a PDF document
PdfDocument document = new PdfDocument();
//Add a new page
PdfPage page = document.Pages.Add();
// Create a Button field.
PdfButtonField submitButton = new PdfButtonField(page, "Submit data");
submitButton.Bounds = new RectangleF(100, 60, 50, 20);
submitButton.ToolTip = "Submit";
document.Form.Fields.Add(submitButton);
// Create a submit action. It submit the data of the form fields to the mentioned URL
PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx");
submitAction.DataFormat = SubmitDataFormat.Html;
submitButton.Actions.GotFocus = submitAction;
//Save and close the PDF document
document.Save("Output.pdf");
document.Close(true);
'Create a PDF document
Dim document As New PdfDocument()
'Add a new page
Dim page As PdfPage = document.Pages.Add()
' Create a Button field.
Dim submitButton As New PdfButtonField(page, "Submit data")
submitButton.Bounds = New RectangleF(100, 60, 50, 20)
submitButton.ToolTip = "Submit"
document.Form.Fields.Add(submitButton)
' Create a submit action. It submit the data of the form fields to the mentioned URL
Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx")
submitAction.DataFormat = SubmitDataFormat.Html
submitButton.Actions.GotFocus = submitAction
'Save and close the PDF document
document.Save("Output.pdf")
document.Close(True)
Fields
Fdf
Data should be transmitted as Forms Data Format.
Declaration
public const SubmitDataFormat Fdf
Field Value
Type |
---|
SubmitDataFormat |
Html
Data should be transmitted as Html.
Declaration
public const SubmitDataFormat Html
Field Value
Type |
---|
SubmitDataFormat |
Data should be transmitted as Pdf.
Declaration
public const SubmitDataFormat Pdf
Field Value
Type |
---|
SubmitDataFormat |
Xfdf
Data should be transmitted as XML Forms Data Format .
Declaration
public const SubmitDataFormat Xfdf
Field Value
Type |
---|
SubmitDataFormat |