---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/OptimizationOptions-Optimization
---

# OptimizationOptions

## Overview

`OptimizationOptions` is a class in Aspose.PDF FOSS for .NET.

Class which describes document optimization algorithm.

This class provides 1 method for working with OptimizationOptions objects in .NET programs.
Available methods include: `All`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `AllowReusePageContent`, `CompressObjects`, `ImageCompressionOptions`, `ImageEncoding`, `LinkDuplicateStreams`, `MaxResoultion`, and 6 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `RemoveUnusedObjects` | `bool` | Read/Write | Eliminate unreferenced document objects. |
| `RemoveUnusedStreams` | `bool` | Read/Write | Delete unused resources from the document. |
| `LinkDuplicateStreams` | `bool` | Read/Write | Consolidate duplicate resource streams into single objects. |
| `CompressObjects` | `bool` | Read/Write | Pack PDF objects into Object Streams (PDF 1.5+ /ObjStm) with compression. |
| `MaxResoultion` | `int` | Read/Write | Maximum image resolution; higher resolution images are scaled down. |
| `AllowReusePageContent` | `bool` | Read/Write | Allow reusing page content streams across identical pages. |
| `UnembedFonts` | `bool` | Read/Write | Remove font embedding from Standard-14 fonts (built into PDF viewers). |
| `SubsetFonts` | `bool` | Read/Write | Convert fonts into subsets (remove unused glyphs). |
| `RemovePrivateInfo` | `bool` | Read/Write | Strip page-piece information and other private (application-specific) information from the document. |
| `ImageCompressionOptions` | `ImageCompressionOptions` | Read | Image-compression sub-options. |
| `ResizeImages` | `bool` | Read/Write | Resize images that exceed MaxResoultion. |
| `ImageEncoding` | `ImageEncoding` | Read/Write | Specifies the encoder used for image processing. |

## Methods

| Signature | Description |
|-----------|-------------|
| `All()` | Factory returning an optimization strategy with all non-destructive options enabled. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)