Issue after convert HTML to Docx

@Sudrashya In this particular case the document is imported properly without table postprocessing:
out_without_table_postprocessing.docx (7.8 KB)

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-24918

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@alexey.noskov: Is this issue because of “colspan”. when HTML table has colspan property, table header and data get distorted (alignment issue).

How (Code) you have generated the docx file? it seems correct to me.

@Sudrashya I have used the following code:

Aspose.Words.Document document = new Aspose.Words.Document(new MemoryStream(Encoding.UTF8.GetBytes(html)));

foreach (Aspose.Words.Section s in document.Sections)
{
    s.PageSetup.TopMargin = 10;
    s.PageSetup.BottomMargin = 10;
    s.PageSetup.LeftMargin = 50;
    s.PageSetup.RightMargin = 0;
}

document.Save(outputFilePath);

@alexey.noskov But we can not remove the following code as other data in the page requires the below code

foreach (Aspose.Words.Tables.Table t in document.GetChildNodes(NodeType.Table, true))
{
    t.AutoFit(AutoFitBehavior.FixedColumnWidths);
}

Do you have any solution with this by any manipulating the HTML or with colspan.

@Sudrashya Unfortunately, at the moment I cannot suggest you a workaround of this issue. Our development team will analyze the problem and then we will be able to provide you more information or workaround.