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

Free Support Forum - aspose.com

Produce High Quality Images in HTML after Converting Word File to HTML C# .NET Code

Probably the same problem I have with html generated from Aspose.Words.
I have this word file:
e6f7ff2e-fa52-4bfc-92b9-ab5000bbc437.zip (16.5 KB)
When I save it as html from Word application then the quality of the image is good. But when I use Aspose.Words then the image is less quality. See this comparison:
73263534-0f5dd780-41d1-11ea-840c-be9884a78679.png (70.7 KB)
(server side - Aspose.Words, client side - Word Application)

Most notable difference can be seen with the red star. The lines of the star are a lot less smooth in the Aspose version.


We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19958. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.


In your case, please check if the following code produces images in HTML with improved quality on your end?

Document doc = new Document("E:\\e6f7ff2e-fa52-4bfc-92b9-ab5000bbc437\\e6f7ff2e-fa52-4bfc-92b9-ab5000bbc437.docx");

HtmlSaveOptions opts = new HtmlSaveOptions(SaveFormat.Html);
opts.UseAntiAliasing = true;

doc.Save("E:\\e6f7ff2e-fa52-4bfc-92b9-ab5000bbc437\\20.2.html", opts);