Dotx to HTML conversion not keeping original formats

Hi There,

I am using Aspose.word, and at some place I need to convert to dotx file into html document,
After converting to HTML we checked and compared with actual document that it do not keeping the original format.

Can you please let me know if i am doing anything wrong or incomplete

Here I am pasting code snipped

var file = httpRequest.Files[“uploadFile”];
MemoryStream mstream = new MemoryStream();
file.InputStream.CopyTo(mstream);

                mstream.Position = 0;

                var filePath = HttpContext.Current.Server.MapPath("~/Files/Exports/" + Guid.NewGuid());

                Aspose.Words.Document docss = new Aspose.Words.Document(mstream);
                var htmlOptions = new Aspose.Words.Saving.HtmlSaveOptions();
                htmlOptions.ExportImagesAsBase64 = true;

                docss.Save(filePath + ".html", htmlOptions);

@mr.ravi26,

Thanks for your inquiry. Please ZIP and attach your input Word document here for testing. We will investigate the issue on our side and provide you more information.

CPE_TEMPLATE.zip (49.6 KB)
please find attachment

@mr.ravi26,

Thanks for sharing the document. We have tested the scenario using latest version of Aspose.Words for .NET 18.6 and have not found any issue with output HTML. Please use Aspose.Words for .NET 18.6. We have attached the output HTML with this post for your kind reference. output.zip (18.2 KB)