Skip to main content

FormFlatteningOptions

Version: 7.0

cete.dynamicpdf.merger.formflatteningoptions

FormFlatteningOptions​

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​

FormFlatteningOptions

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​

FormFlatteningOptions

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​

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 .

See Also​

ceTe.DynamicPDF.Merger