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
Name | Value | Description |
---|---|---|
Xhtml | 0 | Saves the document in compliance with the XHTML 1.0 Transitional standard. |
Html5 | 1 | Saves 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
- namespace Wordize.Saving
- assembly Wordize