Bullets Indentation getting changed after converting from htm to word

Hi,
I am trying to convert a htm docuemnt to word docx using ASPOSE Words 21 version.
Attaching the samples used in the conversion.

CN_8929_Saving_Docx.zip (16.6 KB)

Code used to convert the is as follows -
using (FileStream fs = new FileStream(filePath + “CN_8929.htm”, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
Document doc = new Document(fs);
doc.Save(filePath + "CN_8929_1.docx);
}

Please update us if there is anything.

Regards,
Shanmukh.

@ServerSide527

We have tested the scenario using the latest version of Aspose.Words for .NET 21.9 and have not found the shared issue. So, please use Aspose.Words for .NET 21.9. We have attached the output DOCX with this post for your kind reference.
21.9.docx (15.0 KB)

Hi @tahir.manzoor,

Actually i looked at the output you created, but the indentation is converted to space characters.
Expected the out to be something like this -
image.png (530 Bytes)
but instead we get the spaces instead of single indentation.
image.png (2.9 KB)

Please check the out again.

@ServerSide527

Please note that Aspose.Words mimics the behavior of MS Word. If you convert your HTML to Word document using MS Word, you will get the same output.

We noticed that your HTML document is generated by Aspose.Words. We suggest you please use HtmlSaveOptions.ExportListLabels property with value ByHtmlTags when you save the document to HTML. This option exports all list labels as HTML native elements. So, when you save the HTML to DOCX, you will get the desired output.