TiffConverterOptions class #
Provides options that control how a presentation is converted to TIFF format.
Inheritance:TiffConverterOptions
→ ConverterOptions
The TiffConverterOptions type exposes the following members:
Constructors #
Constructor | Description |
---|---|
__init__ |
Initializes a new instance of the TiffConverterOptions class. |
Properties #
Property | Description |
---|---|
slides_view_options |
Gets or sets the mode in which slides are placed on the page when converting a presentation. Read-write ConverterOptions.slides_view_options . |
default_regular_font |
Returns or sets font used in case source font is not found. Read-write str. |
show_hidden_slides |
Specifies whether the generated TIFF document should include hidden slides or not. Default is false . |
multi_page |
Specifies whether the generated TIFF document should be a multi-page. If value is true , then the result will be a multi-page TIFF document, if false then each slide will be saved in separate TIFF document. Default is false . |
image_width |
Returns or sets the width of the generated TIFF image. Read/write int. |
image_height |
Returns or sets the height of the generated TIFF image. Read/write int. |
dpi |
Returns or sets the resolution of the generated TIFF image. Read/write int. |
compression_type |
Specifies the TIFF compression type. Read/write TiffCompressionTypes . |
pixel_format |
Specifies the pixel format for the generated images. Read/write ImagePixelFormat . |
black_white_mode |
Specifies the algorithm for converting a color image into a black and white image. This option will applied only if TiffConverterOptions.compression_type is set to TiffCompressionTypes.CCITT4 or TiffCompressionTypes.CCITT3 Read/write BlackWhiteConversionMode . Default is BlackWhiteConversionMode.DEFAULT . |
Examples #
The following example shows how to convert PowerPoint document to multi-page Tiff format with CCITT3 compression scheme and the static threshold algorithm (25%).
options = slidize.TiffConverterOptions()
options.multi_page = True
options.compression_type = slidize.TiffCompressionTypes.CCITT3
options.black_white_mode = slidize.BlackWhiteConversionMode.THRESHOLD25
slidize.PresentationToTiffConverter.process("pres.pptx", "pres.tiff", options)
See Also #
- class
ConverterOptions
- class
TiffConverterOptions
- module
slidize
- library
Slidize