Click or drag to resize

HtmlSaveOptions Class

Represents options for saving to HyperText Markup Language (HTML) format.
Inheritance Hierarchy

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version:
public sealed class HtmlSaveOptions : SaveOptions

The HtmlSaveOptions type exposes the following members.

Public methodHtmlSaveOptions
Initializes a new instance of the HtmlSaveOptions class.
Public propertyContentType
Gets the content-type for HTML file format:
(Overrides SaveOptionsContentType.)
Public propertyEmbedImages
Gets or sets a value indicating whether images are embedded directly within the HTML file in form of Base64 encoding.
Public propertyEncoding
Gets or sets the encoding for the HTML file.
Public propertyFilesDirectoryPath
Gets or sets the physical directory where Pictures will be saved.
Public propertyFilesDirectorySrcPath
Gets or sets the relative directory that will be used when referencing Pictures in the HTML.
Public propertyHtmlType
Gets or sets the type of export.
Public propertyIgnoreStyles

Gets or sets a value indicating whether to ignore styling information when generating a HTML.

Use this property if you want that generated HTML contains only HTML elements without any style attributes.

Default value is meaning that document element's styling information will be written to output HTML.

Public propertyUseSemanticElements

Gets or sets a value indicating whether to use semantic elements when generating a HTML.

To maintain backward compatibility, default value is .

The type of the semantic element that will be used is inferred either from a document element type, some of its properties or its style. For example, <h1> to <h6> HTML elements will be used for paragraphs with 'Heading 1' to 'Heading 6' styles. This feature is currently not fully implemented. Support for various HTML semantic elements (especially those defined in HTML5) will be added gradually.

See Also