Free Support Forum - aspose.com

Seeing Extra Revsions When Inserting a Column to a Table

Hi,



I am trying to evaluate Document.compare API.
The scenario under evaluation is very simple. Inserted a column in a table in the document.

The document generated by Aspose Document.compare API shows extra revisions mainly extra format changes and the table also looks messy in Aspose generated comparison document as compared to Word generated comparison document.

The code used is given below:

Document doc1=new Document(“10k.docx”);
Document doc2=new Document(“Doc_Table_Col_Insertion.docx");
doc1.compare(doc2,“Manisha”,new Date());
doc1.save("revDoc_Table_Col_Insertion.docx”);

The sample documents, comparison documents generated by Aspose and MS Word are attached in a zip folder. Also attaching two snapshot where left side is Word generated documents and right side is Aspose Compare API generated document.

Please look into this matter and let me know how we can resolve this issue.

Thanks
Manisha

Hi Manisha,


Thanks for your inquiry. After an initial test with Aspose.Words 15.8.0, I was unable to reproduce this issue on my side. Please upgrade to latest version from following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

Also, I have attached following documents here for your reference:

msw-2013-compared.docx: Generated using MS Word 2013
15.8.0.docx: Generated using Aspose.Words 15.8.0

As shown in attached comparison screenshot, MS Word 2013 generates more formatting revisions than Aspose.Words. Regarding messy Table, please call Document.AcceptAllRevisions method before saving. If we can help you with anything else, please feel free to ask.

Best regards,