Hi,
I use following code to create an HTML fine. The result looks very fine but
is it possible to reduce the amount of spans ? It has 11k spans inside
Here my example:
Document docBR = new Document(@"Annual Financial Report_V9.docx");
docBR.JoinRunsWithSameFormatting();
Encoding encoding = new UTF8Encoding(true);
string cssPrefix2 = "dm";
HtmlFixedSaveOptions saveOptionsFixed2 = new HtmlFixedSaveOptions();
saveOptionsFixed2.Encoding = encoding;
saveOptionsFixed2.CssClassNamesPrefix = cssPrefix2;
saveOptionsFixed2.ExportEmbeddedFonts = false;
saveOptionsFixed2.ExportEmbeddedImages = false;
saveOptionsFixed2.ExportEmbeddedSvg = false;
saveOptionsFixed2.FontFormat = ExportFontFormat.Ttf;
saveOptionsFixed2.PrettyFormat = true;
saveOptionsFixed2.ExportEmbeddedCss = true;
docBR.Save("html/output.html", saveOptionsFixed2);
Annual Financial Report_V9.zip (597.1 KB)
Kind regards,
@Nachti