Class HtmlOptions
Save options for exporting a presentation to HTML. Inherits common progress/cancellation from SaveOptions.
Inherited Members
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public class HtmlOptions : SaveOptions
Properties
EmbedFonts
Gets or sets whether fonts are embedded as base64 data URIs
in a @font-face CSS block. Default: false.
Declaration
public bool EmbedFonts { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
EmbedImages
Gets or sets whether images are embedded as inline base64 data URIs. Default: true. When false, images are written below OutputPath.
Declaration
public bool EmbedImages { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Encoding
Gets or sets the text encoding for the output HTML. Default: UTF-8 without BOM.
Declaration
public Encoding Encoding { get; set; }
Property Value
| Type | Description |
|---|---|
| Encoding |
ExportDocumentProperties
Gets or sets whether document properties (title, author, etc.)
are exported as <meta> tags in the HTML head.
Default: true.
Declaration
public bool ExportDocumentProperties { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
FallbackFontName
Gets or sets the font family name used when a run font cannot be resolved on the system. Default: "Arial".
Declaration
public string FallbackFontName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FontDirectory
Gets or sets an optional directory containing additional font files (.ttf, .otf).
Declaration
public string FontDirectory { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Formatter
Gets or sets the HtmlFormatter that controls the HTML document structure and output mode. When null, a default formatter with FixedLayout is used.
Declaration
public HtmlFormatter Formatter { get; set; }
Property Value
| Type | Description |
|---|---|
| HtmlFormatter |
IncludeHiddenSlides
Gets or sets whether hidden slides are included. Default: false.
Declaration
public bool IncludeHiddenSlides { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Indent
Gets or sets whether the output HTML is pretty-printed with indentation. Default: true.
Declaration
public bool Indent { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
OutputPath
Gets or sets the directory where external image assets are written when EmbedImages is false. The generated HTML uses file names relative to the HTML document.
Declaration
public string OutputPath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Responsive
Gets or sets whether slides are exported as fluid, viewport-scaled images suitable for responsive browser layouts. Default: false.
Declaration
public bool Responsive { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
SlideIndexes
Gets or sets the zero-based indexes of slides to export. When null, all non-hidden slides are exported.
Declaration
public IList<int> SlideIndexes { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<int> |
Title
Gets or sets the HTML <title> element content.
When null, the presentation's document-properties title is used,
falling back to "Untitled".
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |