Hi,
I use this code to generate a HTML out of a document
Document docF = new Document(“Annual Report_V7.docx”); Annual Report_V7.zip (75.2 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);
docF.Save(@“output.html”, saveOption);
}
There are no pictures in this document but I found some SVGs in HTML file.
I see the SVGs are used to draw some lines in a table. But why?
In my case, SVGs are not allowed but I can use jpeg. Can I convert the SVGs to jpeg
before storing them in Html?
Kind regards,
Guido
Kind regards,
Guido