DocumentOptimization

Represents document optimization.

public class DocumentOptimization
Public Class DocumentOptimization

Inheritance: ObjectDocumentOptimization

Examples

The following example shows how to remove duplicate image data entries in the document using document optimization.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
     
Module MyModule
     		
    Sub Main()
     		
        ' Create a PDF Document
        Dim MyDocument As MergeDocument = New MergeDocument("C:\MyduplicateImagedata.pdf")
     
' Set document optimization
        Dim optimization As DocumentOptimization = New DocumentOptimization()
        MyDocument.Optimization = optimization
     
        ' Save the PDF document
        MyDocument.Draw("C:\MyDocument.pdf")
    End Sub
End Module
using System;
using ceTe.DynamicPDF;

public class Example
{
    public static void CreatePDF(string outputPath, string inputPath)
    {
        // Create a PDF Document
        MergeDocument document = new MergeDocument(inputPath);

        // Set document optimization
        document.Optimization = new DocumentOptimization();

        // Save the PDF
        document.Draw(outputPath);
    }
}

Constructors

DocumentOptimization()Initializes a new instance of the DocumentOptimization class.
DocumentOptimization(Boolean)Initializes a new instance of the DocumentOptimization class.

Properties

FontsGets or sets a Boolean value indicating whether the fonts need to be optimized in the document.
ImagesGets or sets a Boolean value indicating whether the images need to be optimized in the document.

Methods

Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also

ceTe.DynamicPDF

In this topic