Class Optimizer

Info

Represents Documentize.Optimizer plugin.

public sealed class Optimizer

Inheritance

objectOptimizer

Inherited Members

Examples

The example demonstrates how to optimize PDF document.

// create Optimizer
var plugin = new Optimizer();
// create OptimizeOptions object to set instructions
var opt = new OptimizeOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

Optimizer()

public Optimizer()

Methods

Process(OptimizeOptions)

Starts the Documentize.Optimizer processing with the specified parameters.

public ResultContainer Process(OptimizeOptions options)

Parameters

  • options OptimizeOptions: An options object containg instructions for the Documentize.OptimizeOptions.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Process(RotateOptions)

Starts the Documentize.Optimizer processing with the specified parameters.

public ResultContainer Process(RotateOptions options)

Parameters

  • options RotateOptions: An options object containg instructions for the Documentize.RotateOptions.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Process(ResizeOptions)

Starts the Documentize.Optimizer processing with the specified parameters.

public ResultContainer Process(ResizeOptions options)

Parameters

  • options ResizeOptions: An options object containg instructions for the Documentize.ResizeOptions.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Process(CompressOptions)

Starts the Documentize.Optimizer processing with the specified parameters.

public ResultContainer Process(CompressOptions options)

Parameters

  • options CompressOptions: An options object containg instructions for the Documentize.CompressOptions.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

 English