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

Free Support Forum - aspose.com

Is there any way to export html with words comments?

Hi. I have a word with some comments. is there any method in py code to export word to html with this comments?

@ZZZ21321 Aspose.Words by default exports comments into HTML. For example if convert the following simple document so HTML: in.docx (16.2 KB) using the following simple code:

doc = aw.Document("C:\\Temp\\in.docx")
doc.save("C:\\Temp\\out.html")

You will get the following output HTML: out.zip (589 Bytes)
As you can see the comment is exported to HTML as a note at the end of the document.

If you need the comments to be exported to HTML with the same visual representation as in MS Word, you can consider converting your document to HtmlFixed format:

doc = aw.Document("C:\\Temp\\in.docx")
doc.save("C:\\Temp\\out_fixed.html", aw.SaveFormat.HTML_FIXED)

In this case you will get the following output: out_fixed.zip (1.2 KB)
That visually look the same as the document look in MS Word: