Thanks for your inquiry. Could you please attach your input Word document and output Html file here for testing? We will investigate the issue on our end and provide you more information.
I have attached a zip file with the following documents:
Sample content.docx - The Word docx file which is imported using Aspose Words .NET - This document has some content added / deleted. Also, there is a comment entered against one of the content text.
Aspose Conversion.html - The converted HTML
Code snippet for import.txt - The code used for import
revisions.jpg - This highlights the class within Aspose.Words.Document which contains the revisions information (i.e. which user inserted / deleted the content). However, this information is not being inported in HTML.
comments.jpg - This highlights the class within Aspose.Words.Document which contains the comments information (i.e. a separate comment entered by highlighting some content and entering comment against it).
So basically both the revisions and comments metadata information is present in Aspose.Words.Document.
How can it be linked with its corresponding content?
Is there any method which would get all metadata information when importing as HTML?
In your case, to mimic the Microsoft Word 2013 behavior, you can use the following code:
Document doc = new Document(@"C:\Temp\Sample content.docx ");
doc.AcceptAllRevisions();
HtmlSaveOptions so = new HtmlSaveOptions(SaveFormat.Html);
…
doc.Save(@"C:\Temp\out.html", so);
Regarding the Word comments being not exported to Html format, I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-9585. Your thread has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.
Thanks for your inquiry. First off, please refer to the attached “out-msw-2013.htm” file which was generated using Microsoft Word 2013 on my side. You can observe that revision’s data (and metadata) is not exported to Html even by Microsoft Word. Aspose.Words generated Html output i.e. produced after calling AcceptAllRevisions method is similar to what Microsoft Word has generated. However, producing Html without calling AcceptAllRevisions will export revisions’ texts only.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.