Free Support Forum - aspose.com

Getting Wrong Revisions When Comparing Documents When Some Pages Moved In Docuemnt

Hi,



I am evaluating Aspose Document.compare API. I am
trying to test a scenario where a set of contiguous pages moved in the sample document.

I am seeing some extra revisions in the comparison document which does not seem to be correct. The Aspose
generated revision document looks different than MS Word generated
comparison document.

MS Word Revision Summary:
6 insertions, 5 deletions, 2 moves and 8 formatting

Aspose Revision Summary:
49 insertions, 58 deletions, 0 moves and 85 formatting

0 moves ( at Aspose side ) seems that something wrong is going on.

The code used is given below:

Document doc1=new Document(“10k.docx”);
Document doc2=new Document(“Doclet_Swap.docx”);<br>try{
doc1.compare(doc2,“Manisha”,new Date());
}catch(Exception e){
System.out.println("Exception Class: "+e.getClass());
System.out.println("Exception Message: "+e.getMessage());
}
doc1.save(“rev_Doclet_Swap.docx”);
Please
find the sample documents, Aspose generated and MS generated compare
documents in attachments. I also attached a snapshot which can
illustrate the above mentioned issues better. In all the snapshots, left
side is MS Word Compare document and right side is Aspose Compare
document.

Please look into this issue and let me know if you need more information on this.


Thanks
Manisha

Hi Manisha,

Thanks for your
inquiry. Could you please share the input documents ‘10k.docx’ and ‘Doclet_Swap.docx’ here for testing? I will investigate the issue on my side and provide you more information.