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 -
setColorImageSettings(settings)
-
updates the settings for color image processing
Parameters:
Name Type Description settings
PDFNet.Optimizer.ImageSettings settings for color image processing Returns:
this object, for call chaining -
setGrayscaleImageSettings(settings)
-
updates the settings for grayscale image processing
Parameters:
Name Type Description settings
PDFNet.Optimizer.ImageSettings settings for grayscale image processing Returns:
this object, for call chaining -
setMonoImageSettings(settings)
-
updates the settings for monochrome image processing
Parameters:
Name Type Description settings
PDFNet.Optimizer.MonoImageSettings settings for monochrome image processing Returns:
this object, for call chaining -
setTextSettings(settings)
-
updates the settings for text processing
Parameters:
Name Type Description settings
PDFNet.Optimizer.TextSettings settings for text processing Returns:
this object, for call chaining