All URIs are relative to https://api.cloudmersive.com
Method | HTTP request | Description |
---|---|---|
compare_document_docx | POST /convert/compare/docx | Compare Two Word DOCX |
str compare_document_docx(input_file1, input_file2, autorepair=autorepair)
Compare Two Word DOCX
Compare two Office Word Documents (docx) files and highlight the differences
from __future__ import print_function
import time
import cloudmersive_convert_api_client
from cloudmersive_convert_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Apikey
configuration = cloudmersive_convert_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'
# create an instance of the API class
api_instance = cloudmersive_convert_api_client.CompareDocumentApi(cloudmersive_convert_api_client.ApiClient(configuration))
input_file1 = '/path/to/file.txt' # file | First input file to perform the operation on.
input_file2 = '/path/to/file.txt' # file | Second input file to perform the operation on (more than 2 can be supplied).
autorepair = true # bool | Optional; automatically repair input documents that have errors (default is true) (optional)
try:
# Compare Two Word DOCX
api_response = api_instance.compare_document_docx(input_file1, input_file2, autorepair=autorepair)
pprint(api_response)
except ApiException as e:
print("Exception when calling CompareDocumentApi->compare_document_docx: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
input_file1 | file | First input file to perform the operation on. | |
input_file2 | file | Second input file to perform the operation on (more than 2 can be supplied). | |
autorepair | bool | Optional; automatically repair input documents that have errors (default is true) | [optional] |
str
- Content-Type: multipart/form-data
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]