Free Support Forum - aspose.com

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

Sir,

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 2.4.1.0

Thanks in advance.

Thanks,
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

http://www.aspose.com/community/files/51/file-format-components/aspose.words/entry107568.aspx

Maybe technique suggested there could help you.

Best regards.