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

Free Support Forum - aspose.com

Html to Word with annotations

Hi,

I am converting a document from html to docx and I want to add some annotations in the output document.

Please provide me a sample code for doing this. Can I add any thing in my html which on conversion will turn into annotation?

@Muzna_Tariq,

Please ZIP and attach your input HTML document, Aspose.Words generated output document (if any) and expected document (DOCX file) showing the final output here for our reference. You can create expected document by using MS Word. We will investigate the scenario further on our end and provide you more information.

file-sample_500kB.zip (86.3 KB)

I want to add annotations in a document like the attached file contains.

I have an html file and I know the indexes where I have to add annotations. What can I add in html on those indexes so that after conversion, they will become annotations.

@Muzna_Tariq,

Please see these sample input/output documents (html-docx.zip (6.8 KB)) and try running the following code:

Document doc = new Document("D:\\temp\\aw-test.html");
doc.Save("D:\\temp\\18.10.docx");

Hope, this helps.

Thanks alot. It works