ImageConverterOptions class #
Provides options that control how a presentation slides should be rendered.
Inheritance:ImageConverterOptions
→ ConverterOptions
The ImageConverterOptions type exposes the following members:
Constructors #
Constructor | Description |
---|---|
__init__ |
Initializes a new instance of the ImageConverterOptions 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. |
image_width |
Returns or sets a width of the generated image. Read/write int. |
image_height |
Returns or sets a height of the generated image. Read/write int. |
image_scale |
Returns or sets a scale of the generated image. Read/write float. |
Examples #
The following example shows how to convert PowerPoint document to PNG format with custom options.
options = slidize.ImageConverterOptions()
options.image_width = 960
options.image_height = 720
slides_view_options = slidize.NotesCommentsViewOptions()
slides_view_options.notes_position = slidize.NotesPosition.BOTTOM_TRUNCATED
options.slides_view_options = slides_view_options
slidize.PresentationToPngConverter.process("pres.pptx", "pres.png", options)
See Also #
- class
ConverterOptions
- class
ImageConverterOptions
- module
slidize
- library
Slidize