OptimizationOptions

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

NameTypeAccessDescription
remove_unused_objectsboolRead/WriteGets or sets the remove unused objects.
remove_unused_streamsboolRead/WriteGets or sets the remove unused streams.
allow_reuse_page_contentboolRead/WriteGets or sets the allow reuse page content.
link_duplicate_streamsboolRead/WriteGets or sets the link duplicate streams.
unembed_fontsboolRead/WriteGets or sets the unembed fonts.
image_compression_qualityint | NoneRead/WriteGets or sets the image compression quality.
image_max_dimensionint | NoneRead/WriteGets or sets the image max dimension.
image_target_dpiint | NoneRead/WriteGets or sets the image target dpi.
image_progressiveboolRead/WriteGets or sets the image progressive.
remove_duplicate_imagesboolRead/WriteGets or sets the remove duplicate images.
compress_fontsboolRead/WriteGets or sets the compress fonts.
use_object_streamsboolRead/WriteGets or sets the use object streams.
subset_fontsboolRead/WriteGets or sets the subset fonts.

Methods

SignatureDescription
to_dict()dict[str, object]Calls to_dict on this OptimizationOptions instance.

See Also