Please try running the following code with latest Aspose.Words for Java i.e. 19.6 on your end:
Document doc = new Document("E:\\Temp\\bug\\test1.docx");
HtmlSaveOptions opts = new HtmlSaveOptions(SaveFormat.HTML);
String pHtml = doc.getFirstSection().getBody().toString(opts);
DocumentBuilder builder = new DocumentBuilder();
Document newDoc = builder.getDocument();
doc.compare(newDoc, "me", new Date());
Attachments: Docs.zip (17.0 KB)
Please see revision in msw-2019-compared.docx document (using Revision pane). There are few formatting revisions but you originally complained about that MS Word 2016 do not make revisions. Aspose.Words output pretty much matches with the output of MS Word 2019. Please tell if there still exist any problems?
Moreover, please see details below to know how msw-2019-compared.docx was produced on our end.
- Open original test1.docx with MS Word 2019. For us it is opened in Compatibility Mode by default.
- Go to Review -> Compare
- Specify ‘Original Document’ as test1.docx and ‘Revised Document’ as html-doc.docx (it is also attached)
- Press OK.
- Go to File -> Save As -> and save as .docx file This was how msw-2019-compared.docx was produced.