Inquiry About Character-Level Comparison in Aspose.Words Cloud

Hi Support Team,

We are currently exploring different tools for Word document comparison, and Aspose.Words appears to be a promising solution for our needs. However, we would like to confirm whether the cloud version of Aspose.Words supports character-level comparison for .doc and .docx files, as we understand that character level granularity is available in the on-premise version.

If character-level comparison is supported in the cloud version, could you please provide guidance on how to achieve this? If not, are there any alternative approaches you recommend?

Looking forward to your response. Thanks in advance!

@Groot

The cloud version of Aspose.Words does support document comparison, including the ability to compare .doc and .docx files. However, it is important to note that the character-level comparison feature, which provides granularity down to individual characters, is not explicitly mentioned for the cloud version in the available documentation.

To perform a document comparison using the Aspose.Words Cloud API, you can utilize the compareDocumentOnline method. This method allows you to compare two documents and retrieve the differences between them. The differences will include information about added, deleted, or modified text, along with their locations in the document.

Here’s a basic example of how to use the API for comparing two documents in Python:

import os
import asposewordscloud
from asposewordscloud.models.requests import CompareDocumentOnlineRequest

# Initialize the API client
words_api = asposewordscloud.WordsApi(client_id='YOUR_CLIENT_ID', client_secret='YOUR_CLIENT_SECRET')

# Open the documents to compare
with open('compareTestDoc1.doc', 'rb') as request_document, open('compareTestDoc2.doc', 'rb') as request_comparing_document:
    # Prepare the comparison data
    compare_data = asposewordscloud.CompareData(author='author', comparing_with_document='TestCompareDocument2.doc', date_time='2015-10-26T00:00:00Z')
    
    # Create the request
    compare_request = CompareDocumentOnlineRequest(document=request_document, compare_data=compare_data, comparing_document=request_comparing_document, dest_file_name='CompareDocumentOut.doc')
    
    # Perform the comparison
    result = words_api.compare_document_online(compare_request)
    print(result)

In this example, replace 'YOUR_CLIENT_ID' and 'YOUR_CLIENT_SECRET' with your actual credentials. The result will provide you with the differences between the two documents, which you can then analyze.

If you require character-level granularity specifically, you may need to explore the on-premise version of Aspose.Words, as it is designed to offer more detailed comparison features.

For further details, you can refer to the official documentation on comparing documents using Aspose.Words Cloud here for more information on the API usage and parameters.

Sources:
[1]: Compare two documents - Aspose Documentation

The granularity feature is not available in the cloud version for now, as we haven’t received such a request in the past. I will create a ticket for that.

@Groot
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSCLOUD-2956

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@yaroslaw.ekimov
Thank you for your prompt response and for creating a ticket for this feature request. We appreciate your support!

Could you please provide an estimated timeline for when this feature might be available? This will help us in our planning and decision-making process.

Looking forward to your update.

It would most likely be available in the 25.4 release, as 25.3 preparation already started.