DocumentOptimization
Represents document optimization.
public class DocumentOptimization
Public Class DocumentOptimization
Inheritance: ObjectDocumentOptimization
Licensing Info
This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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
Fonts | Gets or sets a Boolean value indicating whether the fonts need to be optimized in the document. |
Images | Gets 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) |