pdftools_sdk.pdf2_image.tiff_lzw_image_options

Classes

TiffLzwImageOptions()

The settings for TIFF output images using the LZW compression algorithm

class pdftools_sdk.pdf2_image.tiff_lzw_image_options.TiffLzwImageOptions[source]

Bases: ImageOptions

The settings for TIFF output images using the LZW compression algorithm

LZW (Lempel-Ziv-Welch) is a lossless compression algorithm for images. Please consult the copyright laws of your country prior to using this compression algorithm.

For the output file name, it is recommended to use the file extension “.tif”.

__init__()[source]
property background: BackgroundType

Combine a background with the image

This property allows a choice of which background to combine with the image.

Default is pdftools_sdk.pdf2_image.background_type.BackgroundType.WHITE

Returns:

pdftools_sdk.pdf2_image.background_type.BackgroundType

property color_space: ColorSpace | None

The color space of the output image

Get or set the color space. If null, the blending color space of the page is used.

Default is pdftools_sdk.pdf2_image.color_space.ColorSpace.RGB

Returns:

Optional[pdftools_sdk.pdf2_image.color_space.ColorSpace]