OptimizationOptions
Overview
OptimizationOptions is a class in Aspose.PDF FOSS for Python.
OptimizationOptions lets developers control stream compression, removal of unused objects, image down‑sampling, and other cleanup actions when optimizing PDFs.
This class provides 1 method for working with OptimizationOptions objects in Python programs.
Available methods include: to_dict.
All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package.
Properties: allow_reuse_page_content, compress_fonts, image_compression_quality, image_max_dimension, image_progressive, image_target_dpi, and 7 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
remove_unused_objects | bool | Read/Write | Gets or sets the remove unused objects. |
remove_unused_streams | bool | Read/Write | Gets or sets the remove unused streams. |
allow_reuse_page_content | bool | Read/Write | Gets or sets the allow reuse page content. |
link_duplicate_streams | bool | Read/Write | Gets or sets the link duplicate streams. |
unembed_fonts | bool | Read/Write | Gets or sets the unembed fonts. |
image_compression_quality | int | None | Read/Write | Gets or sets the image compression quality. |
image_max_dimension | int | None | Read/Write | Gets or sets the image max dimension. |
image_target_dpi | int | None | Read/Write | Gets or sets the image target dpi. |
image_progressive | bool | Read/Write | Gets or sets the image progressive. |
remove_duplicate_images | bool | Read/Write | Gets or sets the remove duplicate images. |
compress_fonts | bool | Read/Write | Gets or sets the compress fonts. |
use_object_streams | bool | Read/Write | Gets or sets the use object streams. |
subset_fonts | bool | Read/Write | Gets or sets the subset fonts. |
Methods
| Signature | Description |
|---|---|
to_dict() → dict[str, object] | Calls to_dict on this OptimizationOptions instance. |