We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Word document conversion to Html


Is there any way to preserve original Word formatting options like font types, styles, white spaces, etc. when converting a Word document into HTML?

using (var outStream = new MemoryStream(documentBytes))
using (var documentStream = new MemoryStream(documentBytes))
var doc = new Aspose.Words.Document(documentStream );
doc.Save(_outStream, Aspose.Words.SaveFormat.Html);
return outStream.ToArray();

Hi Vadym,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your document to Html using MS Word, you will get the same output.

Could you please share some more detail about your requirement along with input and expected output html here for our reference? We will then provide you more information on this along with code.