Problem Explanation:
Issue:
When same document is processed twice with the same code. And then when both these output document are compared using aspose api, they found to be unequal.
Note : Compare code is also provided.
Folder Structure:
1) aspose_simple_update_code: This folder contains all the java sample code
2) data: This folder contains original docx and final document which gets genearted when you run the code.
Code Flow Understanding:
Handler.java: This is the file that takes all input and drives the code.
-This file needs two files and a author name as a input :
1) orignal_docx =sample2.docx
2) Aspose License.
-Output file generated will be sample2_edt_new.docx.
-When we run the code again on sample2.docx as original_docx you will get sample2_edt_new_2.docx.(make sure to change output file name this time)
Comparing Output docx:
-When we compare these sample2_edt_new_2.docx and sample2_edt_new.docx using docx. We are getting empty revision.
Note:
-
I have attached a screenshot of the error for your reference.
-
I have also attached a zip that contains code and docx files.
empty_revision.png (32.5 KB)
aspose_simple_update_code.zip (289.3 KB)