java - generating .docx with aspos -


i'm trying convert file .docx using aspose

however,eventhough file generated in microsoft word identical md5 of generated file different each time run same program. there way ensure file integrity using aspose?

here snippet of code:

                system.out.println(digestutils.md5hex(bytes));                 bytearrayinputstream bis = new bytearrayinputstream(bytes);                  document doc = new document(bis);                 doc.save("newfile.docx");                 bis.close();                  bytes= fileutils.readfiletobytearray(new file("newfile.docx");                 system.out.println(digestutils.md5hex(bytes));  //<-- generates md5 different each time run program...why?? 

my question is, there way ensure identical md5 hash after each run

aspose.words mimics same behavior ms word does. if re-save input document multiple times using ms word, md5 hex value each output document different.

i work aspose developer evangelist.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -