cURL commands for REST API to compare images, documents, spreadsheets, eBooks, CAD, PDF files etc. Get documents difference report to accept or reject changes.
Start Free TrialGroupDocs.Comparison Cloud API provides a one-stop-shop solution for comparing documents in all common business formats. Using cURL, you can send requests and receive responses and convert files on the cloud. Supported file types include: PDF and Microsoft Word documents, Excel spreadsheets, PowerPoint presentations, plain text and others.
Using GroupDocs.Comparison Cloud API, you can compare documents and get list of changes, with just a few lines of code.
curl -v "https://api.groupdocs.cloud/v1.0/comparison/compareDocuments/changes?appsid=XXXX&signature=XXX-XX"
-H "content-type: application/json"
-X POST -d "{'sourceFile':{'folder':'comparisons','name':'source.docx','password':''},'targetFiles':[{'folder':'comparisons','name':'target.docx','password':''}],'settings ':{'generateSummaryPage':true,'showDeletedContent':true,'styleChangeDetection':true,'insertedItemsStyle':{'color':'Blue','beginSeparatorString':'','endSeparatorString':'','bold':false,'italic':false,'strikeThrough':false},'deletedItemsStyle':{'color':'Red','beginSeparatorString':'','endSeparatorString':'','bold':false,'italic':false,'strikeThrough':false},'styleChangedItemsStyle':{'color':'Green','beginSeparatorString':'','endSeparatorString':'','bold':false,'italic':false,'strikeThrough':false},'wordsSeparatorChars':[],'detailLevel':'Low','useFramesForDelInsElements':false,'calculateComponentCoordinates':false,'markDeletedInsertedContentDeep':false},'changes':[{'id':0,'action':'Reject'},{'id':1,'action':'Reject'}]}"
Irrespective of the file format, GroupDocs.Comparison Cloud API is able to identify changes in literally all document elements, including texts, lines, boxes, margins, etc. This allows users to get complete details of all changes made to the document: texts, font types and styles, page headers, footers and overall layout – all are precisely analyzed and reported when differences are found.
GroupDocs.Comparison Cloud provides two main resources (Document and Changes) which allows retrieving compared documents (as file or array of images) or its changes. Also it provides the ability to update (accept or reject) retrieved changes.
Being a RESTful API, GroupDocs.Comparison Cloud can be used with any language or platform which supports HTTP requests and responses. You can also use GroupDocs.Comparison Cloud with many third party storage including Amazon S3, Google Cloud, Google Drive and DropBox.