Class: OptimizerSettings

Core.PDFNet.Optimizer. OptimizerSettings


new OptimizerSettings()

An object that stores settings for the optimizer

Methods


removeCustomEntries(should_remove)

Enable or disable removal of custom entries in the PDF. By default custom entries are removed.
Parameters:
Name Type Description
should_remove boolean if true custom entries will be removed.
Returns:
this object, for call chaining
Type
Core.PDFNet.Optimizer.OptimizerSettings

setColorImageSettings(settings)

updates the settings for color image processing
Parameters:
Name Type Description
settings Core.PDFNet.Optimizer.ImageSettings settings for color image processing
Returns:
this object, for call chaining
Type
Core.PDFNet.Optimizer.OptimizerSettings

setGrayscaleImageSettings(settings)

updates the settings for grayscale image processing
Parameters:
Name Type Description
settings Core.PDFNet.Optimizer.ImageSettings settings for grayscale image processing
Returns:
this object, for call chaining
Type
Core.PDFNet.Optimizer.OptimizerSettings

setMonoImageSettings(settings)

updates the settings for monochrome image processing
Parameters:
Name Type Description
settings Core.PDFNet.Optimizer.MonoImageSettings settings for monochrome image processing
Returns:
this object, for call chaining
Type
Core.PDFNet.Optimizer.OptimizerSettings

setTextSettings(settings)

updates the settings for text processing
Parameters:
Name Type Description
settings Core.PDFNet.Optimizer.TextSettings settings for text processing
Returns:
this object, for call chaining
Type
Core.PDFNet.Optimizer.OptimizerSettings