Class Optimizer
Class Optimizer
Namespace: Aspose.Pdf.Plugins
Assembly: Aspose.PDF.dll
Represents Aspose.Pdf.Plugins.Optimizer plugin.
public sealed class Optimizer : IPlugin
Inheritance
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
The example demonstrates how to optimize PDF document.
// create Optimizer
var optimizer = new Optimizer();
// create OptimizeOptions object to set instructions
var opt = new OptimizeOptions();
// add input file paths
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
optimizer.Process(opt);
Constructors
Optimizer()
public Optimizer()
Methods
Process(IPluginOptions)
Starts the Aspose.Pdf.Plugins.Optimizer processing with the specified parameters.
public ResultContainer Process(IPluginOptions options)
Parameters
options
IPluginOptions
An options object containg instructions for the Aspose.Pdf.Plugins.Optimizer.
Returns
An ResultContainer object containg the result of the operation.