SaveOptionsPrettyFormat Property |
Namespace: Aspose.Words.Saving
Set to true to make HTML, MHTML, EPUB, WordML, RTF, DOCX and ODT output human readable. Useful for testing or debugging.
Document doc = new Document(MyDir + "Document.docx"); HtmlSaveOptions htmlOptions = new HtmlSaveOptions(SaveFormat.Html); // Enabling the PrettyFormat setting will export HTML in an indented format that is easy to read // If this is setting is false (by default) then the HTML tags will be exported in condensed form with no indentation htmlOptions.PrettyFormat = true; doc.Save(ArtifactsDir + "Document.SaveHtmlPrettyFormat.html", htmlOptions);