Free Support Forum -

DOC->HTML->DOC - Comments/Headers/Footers lost


I am trying to convert a Microsoft Word document (containing few comments) to HTML and back to .doc . The Comments are lost (converted to ordinary document text) when they are converted back. Is there any way to preserve the comments (as comments itself) when converting from html to doc?

This is same with headers and footers.

I am using Aspose.Words JAVA API

Thanks in advance.

Saravanan. S

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Actually HTML does not have special nodes for comments, headers and footers. So as you understand there is no direct way to roundtrip comments/headers/footers during DOC->HTML->DOC conversion. You can try to create your custom code to achieve this. Please see the following example

Maybe technique suggested there could help you.

Best regards.