Html to word conversion - footnote alignment issue

Hi,
I am using the method:

builder.InsertHtml(htmlfile.html)

to convert an HTML file to MS Word document. The problem resides in the conversion of the first footnote (“A”). As you will see from the attached word file, the second column of the first footnote is not aligning with the second column of the rest of the footnotes - it is mistakenly aligning with the table that is displayed directly above the footnotes.
Do you have a workaround for this issue?
Thanks.
Todd

Hi Todd,

Thanks for your request. I cannot reproduce the problem on my side. I used the latest version of Aspose.Words and the following code for testing:

DocumentBuilder builder = new DocumentBuilder();
string html = File.ReadAllText(@"Test001\htmlsamplefile.html");
builder.InsertHtml(html);
builder.Document.Save(@"Test001\out.doc");

You can download the latest version of Aspose.Words from here:
https://releases.aspose.com/words/net
Best regards,

Hi - thanks for getting back to me - sorry about that, I sent you the wrong file. Please see that attached file. I ran your sample code on this file and the issue is present.
Please let me know if there is a workaround.
Thanks.
Todd

Hi Todd,

Thanks for your inquiry. The problem occurs because there are two tables that comes one after other in the document. After saving to DOC these tables are merged into one table. That is why the second table has wrong column size.
You can easily resolve the issue by inserting a paragraph between these tables. Please see the following code:

DocumentBuilder builder = new DocumentBuilder();
string html = File.ReadAllText(@"Test001\htmlsamplefile1.html");
builder.InsertHtml(html);
// Get collection of tables
NodeCollection tables = builder.Document.GetChildNodes(NodeType.Table, true);
Paragraph spliter = new Paragraph(builder.Document);
// loop through all tables
foreach(Table table in tables)
{
    // Check if the next node after the tabel is another table.
    // If so, insert an empty paragraph between tables.
    if (table.NextSibling != null && table.NextSibling.NodeType == NodeType.Table)
        table.ParentNode.InsertAfter(spliter.Clone(true), table);
}
builder.Document.Save(@"Test001\out.doc");

Hope this helps.
Best regards,