Hi,
I noticed issue, when using InsertHtml method. In my case th has padding set. When I checked the builded document, the table has LeftIndent set also, and in Word the Indent is set. When I opened html using Word, the table doesn’t have indent. So, I think that indent shouldn’t be set then when using InsertHtml method.
My case:
var rawHtml = "<html>" +
"<body>" +
"<table border=\"1\">" +
"<tbody>" +
"<th style=\"padding: 0.16cm 0.19cm 0.05cm 0.19cm\">Header</th>" +
"<tr>" +
"<td>Text</td>" +
"</tr>" +
"</tbody>" +
"</table>" +
"</body>" +
"</html> ";
var _document = new Document().RemoveLicenseParagraph();
var _builder = new DocumentBuilder(_document);
_builder.InsertHtml(rawHtml, true);
_document.Save(@"D:\test_file.docx");
th_indent.zip (15.2 KB)
Could you check, please?
Thanks,
Mateusz