We are using Aspose.Words 22.7 to create diffs between different versions of docx files. The diffs are saved as html. Find attached a reduced test case. In Testfile_v2.docx the text has be been formatted as strike through. Running the program creates two files: Diff.docx and Diff.html. Diff.docx shows the formatting change. Diff.html contains no indication of any change and shows the original version. The problem affects other formatting changes as well, but this one is especially important.
@IBP Thank you for reporting the problem to us. But this cannot be considered as a bug, since MS Word comparison works just like MS Word comparison and differences are marked with revisions. Since HTML format does not support format revisions, there is no good way to export such revisions to HTML.
If you need to preserve revisions only for visual representation, you can consider saving the resulting document as HtmlFixed. In this case the document will looks exactly as it looks in MS Word:
I am havig the save problem. I am comparing two HTML files , while exporting it to the DOCX , I can see the formatting changes ( Rich text formatting ) , But exporting in HTMl the formatting and revision history was lost . I have implemented the solution given by you . Now i can see the formatting in HTML. But my revision history is coming empty and if i export as .docx , it produces the accurate result with revision history.
I am using aspose-words-22.9 with OpenJDK - jdk-8.0.232.09-openj9.