HtmlVersion Enum

Wordize.Saving.HtmlVersion enum. Indicates the version of HTML is used when saving the document to Html and Mhtml formats.

HtmlVersion enumeration

Indicates the version of HTML is used when saving the document to Html and Mhtml formats.

public enum HtmlVersion

Values

NameValueDescription
Xhtml0Saves the document in compliance with the XHTML 1.0 Transitional standard.
Html51Saves the document in compliance with the HTML 5 standard.

Examples

Shows how to specify version of HTML.

HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.HtmlVersion = HtmlVersion.Xhtml;
htmlSaveOptions.ExportXhtmlTransitional = true;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "HtmlSaveOptions.ExportXhtmlTransitional.html", htmlSaveOptions)
    .Execute();

See Also