While collaborating documents with others, one of the exciting features of Aspose.Words Cloud is the ability to compare Word documents (DOCX, DOC, 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: DOCX, DOC, PDF, RTF, DOTX, DOT, ODT, OTT, TXT, HTML, MHTML, XHTML and others.
The description of the important parameters of the API is given below:
|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.|
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
You can use cURL command-line tool to access Aspose.Words web services easily. The following example shows how to make calls to Cloud API with cURL. Feel free to download and explore sample input compareTestDoc1.doc, compareTestDoc2.doc files designed to act as a demonstration and let you figure out the details quickly.
Cloud SDK Family
Using an SDK is the best way to speed up the development. An SDK takes care of low-level details and lets you focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Words Cloud SDKs.
The following code examples demonstrate how to make calls to Aspose.Words web services using various SDKs: