Table of Contents

Class SvgConverterOptions

Namespace
Slidize
Assembly
Slidize.Plugins.dll

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

public sealed class SvgConverterOptions
Inheritance
SvgConverterOptions
Inherited Members

Examples

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

[C#]
SvgConverterOptions options = new()
{
    VectorizeText = true,
    JpegQuality = 85
};
PresentationToSvgConverter.Process("pres.pptx", "pres.svg", options);

Constructors

SvgConverterOptions()

Initializes a new instance of the SvgConverterOptions class.

public SvgConverterOptions()

Properties

DefaultRegularFont

Returns or sets font used in case source font is not found. Read-write string.

public string DefaultRegularFont { get; set; }

Property Value

string

DeletePicturesCroppedAreas

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)

public bool DeletePicturesCroppedAreas { get; set; }

Property Value

bool

JpegQuality

Returns or sets a value determining the quality of the JPEG images inside HTML document. Read/write byte.

public int JpegQuality { get; set; }

Property Value

int

Remarks

Has effect only when a document contains JPEG images.

Use this property to get or set the quality of the images inside a document when saving in HTML format. The value may vary from 0 to 100 where 0 means worst quality but maximum compression and 100 means best quality but minimum compression.

The default value is 95.

LinkExternalFonts

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.

public bool LinkExternalFonts { get; set; }

Property Value

bool

MetafileRasterizationDpi

Returns or sets the lower resolution limit for metafile rasterization. Read/write int.

public int MetafileRasterizationDpi { get; set; }

Property Value

int

PicturesCompression

Represents a compression level of the pictures inside SVG document. Read/write PicturesCompressionLevel.

public PicturesCompressionLevel PicturesCompression { get; set; }

Property Value

PicturesCompressionLevel

UseFrameRotation

Determines whether to perform the specified rotation of the shape when rendering or not. Read/write bool. Default value is true.

public bool UseFrameRotation { get; set; }

Property Value

bool

UseFrameSize

Determines whether the text frame will be included in a rendering area or not. Read/write bool. Default value is false.

public bool UseFrameSize { get; set; }

Property Value

bool

VectorizeText

Determines whether the text on a slide will be saved as graphics. Read/write bool. Default value is false.

public bool VectorizeText { get; set; }

Property Value

bool