Show / Hide Table of Contents

# Class Optimizer.OptimizerSettings

A class that stores settings for the optimizer

##### Inheritance

object
Optimizer.OptimizerSettings

##### Inherited Members

object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

###### Namespace: pdftron.PDF

###### Assembly: PDFNet.dll

##### Syntax

    public class Optimizer.OptimizerSettings

### Constructors

#### OptimizerSettings()

create an OptimizerSettings object with default options

##### Declaration

    public OptimizerSettings()

### Methods

#### RemoveCustomEntries(bool)

Enable or disable removal of custom entries in the PDF. By default custom entries are removed.

##### Declaration

    public void RemoveCustomEntries(bool should_remove)

##### Parameters

Type | Name | Description
--- | --- | ---
bool | should_remove | if true custom entries will be removed.

#### SetColorImageSettings(ImageSettings)

##### Declaration

    public void SetColorImageSettings(Optimizer.ImageSettings settings)

##### Parameters

Type | Name | Description
--- | --- | ---
Optimizer.ImageSettings | settings |

#### SetGrayscaleImageSettings(ImageSettings)

##### Declaration

    public void SetGrayscaleImageSettings(Optimizer.ImageSettings settings)

##### Parameters

Type | Name | Description
--- | --- | ---
Optimizer.ImageSettings | settings |

#### SetMonoImageSettings(MonoImageSettings)

##### Declaration

    public void SetMonoImageSettings(Optimizer.MonoImageSettings settings)

##### Parameters

Type | Name | Description
--- | --- | ---
Optimizer.MonoImageSettings | settings |

#### SetTextSettings(TextSettings)

##### Declaration

    public void SetTextSettings(Optimizer.TextSettings settings)

##### Parameters

Type | Name | Description
--- | --- | ---
Optimizer.TextSettings | settings |