using var stream = new MemoryStream();
HtmlSaveOptions options = new HtmlSaveOptions(SaveFormat.Html)
{
PrettyFormat = true,
ExportHeadersFootersMode = ExportHeadersFootersMode.PerSection,
ExportImagesAsBase…...or if the fonts used in the document are not available on the system...allows the fonts used in the document to be exported. ExportFontsAsBase64...