Table of Contents

Class HtmlConverterOptions

Namespace
Slidize
Assembly
Slidize.Plugins.dll

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

public sealed class HtmlConverterOptions : ConverterOptions
Inheritance
HtmlConverterOptions
Inherited Members

Examples

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

[C#]
HtmlConverterOptions options = new()
{
    ShowHiddenSlides = true,
    SaveSlideInSVGFormat = false,
    SlideImageScale = 2f
};
PresentationToHtmlConverter.Process("pres.pptx", "pres.html", options);

Constructors

HtmlConverterOptions()

Initializes a new instance of the HtmlConverterOptions class.

public HtmlConverterOptions()

Properties

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 byte JpegQuality { get; set; }

Property Value

byte

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.

PicturesCompression

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

public PicturesCompressionLevel PicturesCompression { get; set; }

Property Value

PicturesCompressionLevel

SaveSlideInSVGFormat

Specifies whether to save slide image in SVG format. If false the slide will be saved in JPEG image. Default value is true.

public bool SaveSlideInSVGFormat { get; set; }

Property Value

bool

ShowHiddenSlides

Specifies whether the generated document should include hidden slides or not. Default value is false.

public bool ShowHiddenSlides { get; set; }

Property Value

bool

SlideImageScale

Returns or sets the slide image scale. Read/write float.

public float SlideImageScale { get; set; }

Property Value

float

Remarks

This property will be ignored if SaveSlideInSVGFormat is set to true.