Docx Conversion - Format Issue

Hi Aspose support team,

We are facing an issue while converting an HTML to DOCX, instead of border being applied to parent div in HTML, it is getting applied on each child div in docx. When we directly open the HTML in MS Office word it shows border correctly. Whereas in Aspose tool, after conversion, the output shows that border is getting applied on each child div separately. Also the bullets and text is not aligned properly. I request you to look into this issue urgently

Attaching screenshots for reference.

HTML View:

HTML tag view:

MS Office Word View:

Aspose Docx View:

Thanks and Regards

@seemalnasir You should use BlockImportMode.Preserve to get the desired output:

HtmlLoadOptions loadOptions = new HtmlLoadOptions();
loadOptions.BlockImportMode = BlockImportMode.Preserve;

Document doc = new Document(@"C:\Temp\in.html", loadOptions);
doc.Save(@"C:\Temp\out.docx");

We are using version 22.2.0 and this property does not exist in this version. With latest version there is a license barrier. We can not update the license due to client limitation, we need a solution in the version we are currently using.

I’m receiving this error message in latest version:

The subscription included in this license allows free upgrades until 04 Feb 2022, but this version of the product was released on 01 Jul 2022. Please renew the subscription or use a previous version of the product.'

@seemalnasir Unfortunately, there is no way to achieve the same using 22.2 version of Aspose.Words. The feature has been introduced in 22.4 version. So to use this feature you should renew your license.
For a testing purposes you can request a temporary 30-days license to check whether the latest version gives you a desired result.