cete.dynamicpdf.merger.formflatteningoptions
FormFlatteningOptions
- Namespace: ceTe.DynamicPDF.Merger
- Assemblies: ceTe.DynamicPDF.40.dll
Represents options for flattening form fields in the PDF documents.
public class FormFlatteningOptions
Public Class FormFlatteningOptions
Inheritance: Object → FormFlatteningOptions
Licensing
This class is a DynamicPDF Merger Professional Edition feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF Merger for .NET Professional Edition
- DynamicPDF Merger for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Professional Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
Examples
The following example shows how to flatten a PDF using FormFlatteningOptions
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
Module MyModule
Sub Main()
' Create a merge document containing the form fields
Dim document As MergeDocument = New MergeDocument("C:\AllFormFields.pdf")
'Set FormFlattening property of the document
document.FormFlattening = FormFlatteningOptions.Default
' Save the document
document.Draw("C:\AllFormFields_Flattened_VB.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;
class MyClass
{
static void Main()
{
// Create a merge document containing the form fields
MergeDocument document = new MergeDocument(@"C:\AllFormFields.pdf");
//Set FormFlattening property of the document
document.FormFlattening = FormFlatteningOptions.Default;
// Save the document
document.Draw(@"C:\AllFormFields_Flattened.pdf");
}
}
Constructors
FormFlatteningOptions()
Initializes a new instance of the FormFlatteningOptions class.
public FormFlatteningOptions()
Public Sub New ()
Properties
Default
Gets an instance of FormFlatteningOptions with DigitalSignatures property set to remove.
public static FormFlatteningOptions Default { get; }
Public Shared Property Default As FormFlatteningOptions
Property Value
DigitalSignatures
Gets or sets a value indicating digital signature flattening option.
public SignatureFieldFlatteningOptions DigitalSignatures { get; set; }
Public Property DigitalSignatures As SignatureFieldFlatteningOptions
Property Value
SignatureFieldFlatteningOptions
RetainDigitalSignatures
Gets an instance of FormFlatteningOptions with DigitalSignatures property set to retain.
public static FormFlatteningOptions RetainDigitalSignatures { get; }
Public Shared Property RetainDigitalSignatures As FormFlatteningOptions
Property Value
Methods
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .