Hi,
when I use following code snippets to save docx to html,
the table heights are different as you can see with the black line next to the table.
This is my code:
Document docBR = new Document(@"TableHeigth.docx");
Aspose.Words.Saving.HtmlSaveOptions saveop2 = new Aspose.Words.Saving.HtmlSaveOptions();
docBR.Save("html/outputHtmlSaveOptions.html", saveop2);
//docBR.JoinRunsWithSameFormatting();
//Encoding encoding = new UTF8Encoding(true);
string cssPrefix2 = "dm";
HtmlFixedSaveOptions saveOptionsFixed2 = new HtmlFixedSaveOptions();
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/outputHtmlFixedSaveOptions.html", saveOptionsFixed2);
This is the result: resulthtml.zip (80.1 KB)
With HtmlFixedSaveOptions it looks like in Word.
Why are the heigths of the table different ? And what do I have to consider so that the table heights are the same?
Kind regards,
@Nachti