SvgConverterOptions class

SvgConverterOptions class #

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

The SvgConverterOptions type exposes the following members:

Constructors #

Constructor Description
__init__ Initializes a new instance of the SvgConverterOptions class.

Properties #

Property Description
default_regular_font Returns or sets font used in case source font is not found. Read-write str.
use_frame_size Determines whether the text frame will be included in a rendering area or not. Read/write bool. Default value is false.
use_frame_rotation Determines whether to perform the specified rotation of the shape when rendering or not. Read/write bool. Default value is true.
vectorize_text Determines whether the text on a slide will be saved as graphics. Read/write bool. Default value is false.
metafile_rasterization_dpi Returns or sets the lower resolution limit for metafile rasterization. Read/write int.
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 SVG 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)
link_external_fonts Determines a way of handling externally loaded fonts. If true, the links to separate font files will be added to the style section of SVG file. If false, the font data will be embedded to SVG file. Please check all external fonts license agreements before embedding. Read/write bool. Default value is true.

Examples #

The following example shows how to convert PowerPoint document to SVG format with the vectorized text and low Jpeg quality.

options = slidize.SvgConverterOptions()
options.vectorize_text = True
options.jpeg_quality = 85
slidize.PresentationToSvgConverter.process("pres.pptx", "pres.svg", options)

See Also #