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

Free Support Forum - aspose.com

Equation symbol images are not transparenty when saving DOCX to HTML


When saving a DOCX with equation symbols to HTML, I noticed the images of the symbols are not transparent.


var doc = new Document(@".\test.docx");
var options = new HtmlSaveOptions();
options.OfficeMathOutputMode = HtmlOfficeMathOutputMode.Image;
doc.Save(@".\AsposeOut.html", options);

The white background is visible when the symbol is in a coloured cell. Note that the issue does not happen if I saved the DOCX manually to HTM using Office Word.

We understood that it is possible to use other formats by setting OfficeMathOutputMode, but since image format is the default format for manual DOCX to HTML conversion, we expect Aspose to produce the same transparent images.

I’ve attached the test files including both Aspose and Word outputs, as well as a screenshot for your reference. Could you please help to take a look?

test.zip (26.2 KB)
image.png (53.8 KB)


@ServerSide527 Thank you for reporting this problem to us. I have logged it as WORDSNET-23343. We will keep you informed and let you know once it is resolved.