HtmlSaveOptions Constructor (SaveFormat) |
Namespace: Aspose.Words.Saving
Document doc = new Document(MyDir + "Rendering.docx"); // Save the document to a .html file of the XHTML 1.0 Transitional standard HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html) { HtmlVersion = Aspose.Words.Saving.HtmlVersion.Xhtml, ExportXhtmlTransitional = true, PrettyFormat = true }; // The DOCTYPE declaration at the top of this document will indicate the html version we chose doc.Save(ArtifactsDir + "HtmlSaveOptions.HtmlVersion.html", options);