Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

Product Docs Swagger Examples Blog Support Dashboard

Installation

The package is available at nuget.org and it can be installed via package manager console by executing following command:

PM> NuGet\Install-Package GroupDocs.Comparison-Cloud

Version NuGet .NET


System Requirements

CategoryDetails
Supported Operating Systems- Windows (Server 2003 and later, XP, Vista, 7, 8, 10, 11), - Linux (Ubuntu, OpenSUSE, CentOS), - Mac OS X
Supported Frameworks- .NET 6, - .NET Core 3.1, - .NET Standard 2.1, - .NET Framework (Versions 2.0 to 4.8)
Development Environments- Microsoft Visual Studio 2010 and later, - Microsoft Visual Studio for Mac, - Rider by JetBrains
Additional RequirementsGroupDocs.Comparison for .NET does not require external software or third-party tools for installation.

Installation of GroupDocs.Comparison for .NET

You can easily install the GroupDocs.Comparison library for .NET in two ways:

Via NuGet Packages

  • NuGet Package Manager: Open Visual Studio, right-click your project, and select Manage NuGet Packages. Search for “GroupDocs.Comparison” and install the latest version.

  • Package Manager Console: Open the console in Visual Studio and run:

    PM> Install-Package GroupDocs.Comparison
    
  • .NET CLI: In your terminal, navigate to your project folder and run:

    dotnet add package GroupDocs.Comparison
    

Manual Download

  • Download the GroupDocs.Comparison package from the official website.
  • Extract the downloaded ZIP file or run the MSI installer, then add references to the GroupDocs.Comparison.dll in your project.

Merge Source Code Files with Change Control

This code allows developers to compare two versions of source code files, control the acceptance or rejection of detected changes, and merge them into a single result file. This feature is critical for collaborative development environments, especially when working with version control systems.

// Instantiate the Comparer object and load the source file
using (Comparer comparer = new Comparer(sourcePath))
{
    // Add the target file for comparison
    comparer.Add(targetPath);

    // Perform the comparison and store the result
    comparer.Compare(resultPath);

    // Get the list of detected changes
    ChangeInfo[] changes = comparer.GetChanges();

    // Accept the first 10 changes
    for (int i = 0; i < 10; i++)
    {
        changes[i].ComparisonAction = ComparisonAction.Accept;
    }

    // Reject the remaining changes
    for (int i = 10; i < changes.Length; i++)
    {
        changes[i].ComparisonAction = ComparisonAction.Reject;
    }

    // Apply the accepted and rejected changes to the result file
    comparer.ApplyChanges(File.Create(resultPath), new ApplyChangeOptions { Changes = changes });
}

Compare Password-Protected Documents

This example demonstrates how to compare two password-protected documents. It shows how to securely manage documents that require password protection, allowing developers to handle sensitive files in a secure .NET environment.

// Define the load options with the password for the source document
LoadOptions sourceLoadOptions = new LoadOptions(){ Password = "1234" };

// Create the Comparer object for the source document
using (Comparer comparer = new Comparer("source.docx", sourceLoadOptions))
{
    // Define load options with the password for the target document
    LoadOptions targetLoadOptions = new LoadOptions() { Password = "5678" };

    // Add the target document with the specified load options
    comparer.Add("target.docx", targetLoadOptions);

    // Perform the comparison and save the result
    comparer.Compare("result.docx");
}

Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Comparison API | .NET Cloud API | GroupDocs.Comparison Cloud | REST API | Document Comparison | Folder Comparison | Revision Control | Track Changes | Preview Generation | Multi-format Support | Password Protected Documents | Source Code Comparison | Change Tracking | Customization | Document Merging | Change Coordinates | Metadata Extraction | Document Security | File Formats | Document Review | Multi-language Support | Fast Processing | Secure API Access | Data Encryption | Cloud Storage Integration | GitHub Repository


 English