__init__ constructor

On this page

init

Initializes a new instance of PdfOptimizationOptions with default MaxResolution of 300 and ImageQuality of 100.

For details and code samples, see the online documentation page.

def __init__(self):
    ...

Example

from groupdocs.viewer.options import PdfOptimizationOptions

# Create options with default settings
pdf_opts = PdfOptimizationOptions()
# Enable removal of unused objects to reduce file size
pdf_opts.remove_unused_objects = True

See Also

On this page