HtmlConverterOptions class

HtmlConverterOptions class #

Provides options that control how a presentation is converted to HTML format.

Inheritance:HtmlConverterOptionsConverterOptions

The HtmlConverterOptions type exposes the following members:

Constructors #

Constructor Description
__init__ Initializes a new instance of the HtmlConverterOptions 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 document should include hidden slides or not. Default value is false.
save_slide_in_svg_format Specifies whether to save slide image in SVG format. If false the slide will be saved in JPEG image. Default value is true.
slide_image_scale Returns or sets the slide image scale. Read/write float.
jpeg_quality Returns or sets a value determining the quality of the JPEG images inside HTML document. Read/write int.
pictures_compression Represents a compression level of the pictures inside HTML document. Read/write PicturesCompressionLevel.
delete_pictures_cropped_areas A boolean flag indicates if the cropped parts remain as part of the document. If true the cropped parts will removed, if false they will be serialized in the document (which can possible lead to a larger file)

Examples #

The following example shows how to convert PowerPoint document to HTML format with JPEG slides images enlarged 2 times.

options = slidize.HtmlConverterOptions()
options.show_hidden_slides = True
options.save_slide_in_svg_format = False
options.slide_image_scale = 2
slidize.PresentationToHtmlConverter.process("pres.pptx", "pres.html", options)

See Also #