---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/optimizationoptions
---

# OptimizationOptions

## Overview

`OptimizationOptions` is a type in Aspose.PDF FOSS for Go.

OptimizationOptions selects which reductions Document.Optimize applies.

Properties: `CompressStreams`, `Images`, `RemoveDuplicateStreams`, `RemoveUnusedObjects`, `SubsetFonts`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `RemoveUnusedObjects` | `bool` | Read/Write | Gets the remove unused objects. |
| `SubsetFonts` | `bool` | Read/Write | Gets the subset fonts. |
| `CompressStreams` | `bool` | Read/Write | Gets the compress streams. |
| `RemoveDuplicateStreams` | `bool` | Read/Write | Gets the remove duplicate streams. |
| `Images` | `*OptimizeImageOptions` | Read/Write | Gets the images. |

## See Also

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