Class Optimizer
Optimizer class
Represents Optimizer
plugin.
public sealed class Optimizer : IPlugin
Constructors
Name | Description |
---|---|
Optimizer() | The default constructor. |
Methods
Name | Description |
---|---|
Process(IPluginOptions) | Starts the Optimizer processing with the specified parameters. |
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);
See Also
- interface IPlugin
- namespace Aspose.Pdf.Plugins
- assembly Aspose.PDF