Show / Hide Table of Contents

# Class Optimizer.OptimizerSettings

A class that stores settings for the optimizer

##### Inheritance

object
Optimizer.OptimizerSettings

##### Inherited Members

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

###### Namespace: pdftron.PDF

###### Assembly: PDFTronDotNet.dll

##### Syntax

    public class Optimizer.OptimizerSettings

### Constructors

#### OptimizerSettings()

create an OptimizerSettings object with default options

##### Declaration

    public OptimizerSettings()

### Properties

#### m_color_image_settings

##### Declaration

    public Optimizer.ImageSettings m_color_image_settings { get; set; }

##### Property Value

Type | Description
--- | ---
Optimizer.ImageSettings |

#### m_grayscale_image_settings

##### Declaration

    public Optimizer.ImageSettings m_grayscale_image_settings { get; set; }

##### Property Value

Type | Description
--- | ---
Optimizer.ImageSettings |

#### m_mono_image_settings

##### Declaration

    public Optimizer.MonoImageSettings m_mono_image_settings { get; set; }

##### Property Value

Type | Description
--- | ---
Optimizer.MonoImageSettings |

#### m_remove_custom

##### Declaration

    public bool m_remove_custom { get; set; }

##### Property Value

Type | Description
--- | ---
bool |

#### m_text_settings

##### Declaration

    public Optimizer.TextSettings m_text_settings { get; set; }

##### Property Value

Type | Description
--- | ---
Optimizer.TextSettings |

### 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)

updates the settings for color image processing

##### Declaration

    public void SetColorImageSettings(Optimizer.ImageSettings settings)

##### Parameters

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

#### SetGrayscaleImageSettings(ImageSettings)

updates the settings for grayscale image processing

##### Declaration

    public void SetGrayscaleImageSettings(Optimizer.ImageSettings settings)

##### Parameters

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

#### SetMonoImageSettings(MonoImageSettings)

updates the settings for monochrome image processing

##### Declaration

    public void SetMonoImageSettings(Optimizer.MonoImageSettings settings)

##### Parameters

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

#### SetTextSettings(TextSettings)

updates the settings for text processing

##### Declaration

    public void SetTextSettings(Optimizer.TextSettings settings)

##### Parameters

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