Hi,
I use this code to save a Word file (Aspose 19.4.0.0) as HTML with FixedSaveOption:
Document docF = new Document(“Annual Report_V5.docx”); Annual Report_V5.zip (779.3 KB)
HtmlFixedSaveOptions saveOption = new HtmlFixedSaveOptions();
saveOption.Encoding = Encoding.UTF8;
saveOption.FontFormat = ExportFontFormat.Ttf;
saveOption.ExportEmbeddedCss = true;
saveOption.ExportEmbeddedImages = true;
saveOption.ExportEmbeddedFonts = true;
saveOption.ExportEmbeddedSvg = true;
saveOption.PrettyFormat = true;
saveOption.CssClassNamesPrefix = “dm”;
using (MemoryStream origHtmlStream = new MemoryStream())
{
docF.Save(origHtmlStream, saveOption);
//Issue occurs in save method
}
Error Message is: Stack empty
Kind regards,
Guido