We are evaluating the Aspose.Word product, and we found that some of the files are not properly converting to HTML format.
Refer attached file.
I am using trailing code for this.
private void ConvertByteToHTML(string path, HtmlTextWriter writer)
{
using (var stream = File.OpenRead(path))
{
ConvertByteToHTML(stream);
}
}
private static Document Load(Stream stream)
{
return new Document(stream);
}
private void ConvertByteToHTML(Stream stream)
{
Load(stream).Save(Response, "vikas", ContentDisposition.Inline, new Aspose.Words.Saving.HtmlSaveOptions() { ExportImagesAsBase64 = true });
}