Compare

While collaborating documents with others, one of the exciting features of Aspose.Words Cloud is the ability to compare Word documents (DOC, DOCX, RTF, ODT) and keep track of changes, that include text additions, deletions and format modifications. To create a document with tracked changes, you need to compare a Word document with its revised edition.

The REST API compares the original Word document with the revised one and allows to see the difference. The result is written to the output document that contains track changes as a number of edit and format revisions. If the output document is not specified — the revisions are saved to the original document.

Document comparison works perfectly for any file format, and you can even compare documents of different file formats. The following formats are supported: DOC, DOCX, DOCM, PDF, RTF, DOTX, DOTM, DOT, ODT, OTT, TXT, HTML, MHTML, XHTML and others.

The description of the important parameters of the API is given below:

Name Type Description
ComparingWithDocument string Path to document to compare at the server.
Author string Initials of the author to use for revisions.
DateTime string The date and time to use for revisions. Default is the current server time.

Usage examples with cURL and Postman

You can carry out REST API interactions using cURL and Postman. Please read these instructions to receive a personal JWT_TOKEN for authorization.

Download sample compareTestDoc1.doc, compareTestDoc2.doc files for testing purposes.

Aspose.Words Cloud SDK Family

Using SDK is the best way to speed up the development. Please go to the GitHub repository to explore a wide family of our Cloud SDKs. These powerful libraries take care of all low-level programming details and let you focus on your primary tasks.

Usage examples in Python, Java, C#, etc.

The following code samples show how to interact with the REST API using almost any mainstream programming language.

You can find a lot of other examples in Python, Java, C#, JavaScript, PHP, C++, Golang, Ruby, Swift, Dart on GitHub. All codes are thoroughly tested and ready for production use.