GroupDocs.Comparison-Cloud
24.2.0
dotnet add package GroupDocs.Comparison-Cloud --version 24.2.0
NuGet\Install-Package GroupDocs.Comparison-Cloud -Version 24.2.0
<PackageReference Include="GroupDocs.Comparison-Cloud" Version="24.2.0" />
paket add GroupDocs.Comparison-Cloud --version 24.2.0
#r "nuget: GroupDocs.Comparison-Cloud, 24.2.0"
// Install GroupDocs.Comparison-Cloud as a Cake Addin #addin nuget:?package=GroupDocs.Comparison-Cloud&version=24.2.0 // Install GroupDocs.Comparison-Cloud as a Cake Tool #tool nuget:?package=GroupDocs.Comparison-Cloud&version=24.2.0
Document Comparison & Revision .NET Cloud REST API
GroupDocs.Comparison for .NET is a powerful cloud REST API designed for developers to enhance document comparison functionality in C#, ASP.NET, and other .NET cloud-based applications. Supporting over 90 file formats, this API allows you to compare entire folders, accept or reject document revisions, and visualize changes with page previews. With features like granular change control, style customization, and multi-document support, developers can efficiently automate bulk file comparisons. Additional features include password-protected document comparison, source code file merging, and extraction of detailed change coordinates. This tool is ideal for collaborative environments, legal document review, and version control systems, offering developers comprehensive comparison capabilities with flexibility and ease of integration.
Folder and Document Comparison Features
Compare Entire Folders: Easily compare the contents of entire directories or folders.
GroupDocs.Comparison for .NET enables developers to compare folder contents with support for automatic detection of differences across documents in those folders. Options include saving results in TXT or HTML formats, and filtering to display only changed items. This feature is ideal for developers looking to automate bulk file comparisons efficiently within their .NET applications.
Document Revision Control
Accept or Reject Revisions in DOCX Documents: Efficiently manage document revisions programmatically in DOCX files.
The .NET API empowers developers to programmatically accept or reject revisions in Word DOCX files. Developers can extract a list of all revisions, apply desired changes, and reject others, enabling complete control over document editing and version management through an easy-to-integrate solution.
Document Page Preview Generation
Generate Document Pages Preview: Preview document pages before saving final comparison results.
GroupDocs.Comparison for .NET supports generating high-quality preview images for document pages, allowing developers to visualize and verify changes before finalizing the output. Developers can specify formats (PNG, JPG, BMP) and select custom dimensions, enabling seamless integration of document previews into applications requiring visual content management or review processes.
Change Management and Review
Accept or Reject Detected Changes: Control document changes with granular precision.
Developers can choose to accept or reject individual changes detected between source and target documents, allowing for customizable review workflows. This feature is perfect for applications requiring document collaboration, where fine control over document edits is essential.
Show Revisions and Track Changes: Display changes like Microsoft Word Track Changes.
This feature highlights detected differences between documents using Word-style track changes, making it easier for users to understand insertions, deletions, and formatting changes. This function is particularly useful for legal, financial, and academic applications that rely on detailed document revisions.
Set Author of Changes: Assign authorship to document changes for enhanced accountability.
By setting an author to the detected changes, developers can ensure that changes made by different collaborators are correctly attributed, improving clarity and tracking for multi-user document editing.
Customization and Flexibility
Customize Changes Styles: Personalize the appearance of detected changes.
GroupDocs.Comparison provides robust options for developers to customize how changes appear in comparison results. With control over fonts, colors, and text styles (e.g., bold, italic, strikethrough), developers can match comparison outputs to their application's specific branding or UI requirements.
Adjusting Comparison Sensitivity: Balance speed and accuracy in document comparisons.
The sensitivity of document comparisons can be adjusted to find the optimal trade-off between comparison speed and accuracy. Sensitivity settings range from 0 to 100, enabling developers to tailor the API’s performance based on their application's needs, whether prioritizing speed for large comparisons or accuracy for precise document analysis.
Multi-Document Support
Compare Multiple Documents: Compare multiple documents simultaneously.
GroupDocs.Comparison for .NET allows developers to compare more than two documents at once, including support for password-protected documents. This feature is invaluable for enterprise applications that handle large volumes of document comparisons or perform batch document processing.
Merge Source Code Files: Efficiently compare and merge source code files.
The API supports comparing and merging multiple versions of source code files. Developers can control which changes are accepted or rejected, making it an essential tool for version control systems or applications that handle collaborative source code editing.
Detailed Change Analysis
Get Changes Coordinates: Pinpoint the exact location of changes within documents.
This feature helps developers retrieve the coordinates of detected changes, allowing them to highlight differences directly on document previews or for use in automated review processes. Perfect for applications that involve legal document comparisons or quality assurance reviews.
Get List of Changes: Receive a detailed list of all detected changes.
The API provides a comprehensive list of all changes found between documents, including the change type, page number, and affected text. This detailed insight is useful for applications needing precise change tracking, such as contract management systems or automated auditing tools.
Get Source and Target Text from Files: Extract and analyze changed text for deeper insights.
GroupDocs.Comparison allows developers to extract both the original and modified text for each detected change, enabling them to perform detailed analysis or audits of document edits.
Saving and Metadata Control
Set Document Metadata on Save: Control document metadata when saving comparison results.
Developers can set or modify metadata on output documents, such as the author, title, or organization, allowing for proper classification and compliance with document management protocols.
Set Password for Output Document: Secure output documents with password protection.
GroupDocs.Comparison for .NET offers an easy way to apply password protection to the resulting documents, ensuring that sensitive content remains secure. This is especially useful for applications handling confidential or legal documents.
Supported Document Formats
Format | Description | Compare | Auto Detection |
---|---|---|---|
PDF |
Adobe Portable Document Format (PDF) | ✔️ | ✔️ |
DOC |
Microsoft Word 97-2003 Document | ✔️ | ✔️ |
DOCM |
Microsoft Word Macro-Enabled Document | ✔️ | ✔️ |
DOCX |
Microsoft Word Document | ✔️ | ✔️ |
DOT |
Microsoft Word 97-2003 Template | ✔️ | ✔️ |
DOTM |
Microsoft Word Macro-Enabled Template | ✔️ | ✔️ |
DOTX |
Microsoft Word Template | ✔️ | ✔️ |
XLS |
Microsoft Excel 97-2003 Worksheet | ✔️ | ✔️ |
XLT |
Microsoft Excel Template | ✔️ | ✔️ |
XLSX |
Microsoft Excel Worksheet | ✔️ | ✔️ |
XLTM |
Microsoft Excel Macro-Enabled Template | ✔️ | ✔️ |
XLSB |
Microsoft Excel Binary Worksheet | ✔️ | ✔️ |
XLSM |
Microsoft Excel Macro-Enabled Worksheet | ✔️ | ✔️ |
POT |
Microsoft PowerPoint Template | ✔️ | ✔️ |
POTX |
Microsoft PowerPoint Template | ✔️ | ✔️ |
PPS |
Microsoft PowerPoint 97-2003 Slide Show | ✔️ | ✔️ |
PPSX |
Microsoft PowerPoint Slide Show | ✔️ | ✔️ |
PPTX |
Microsoft PowerPoint Presentation | ✔️ | ✔️ |
PPT |
Microsoft PowerPoint 97-2003 Presentation | ✔️ | ✔️ |
VSDX |
Microsoft Visio Drawing | ✔️ | ✔️ |
VSD |
Microsoft Visio 2003-2010 Drawing | ✔️ | ✔️ |
VSS |
Microsoft Visio 2003-2010 Stencil | ✔️ | ✔️ |
VST |
Microsoft Visio 2003-2010 Template | ✔️ | ✔️ |
VDX |
Microsoft Visio 2003-2010 XML Drawing | ✔️ | ✔️ |
ONE |
Microsoft OneNote | ✔️ | ✔️ |
ODT |
OpenDocument Text | ✔️ | ✔️ |
ODP |
OpenDocument Presentation | ✔️ | ✔️ |
OTP |
OpenDocument Presentation Template | ✔️ | ✔️ |
ODS |
OpenDocument Spreadsheet | ✔️ | ✔️ |
OTT |
OpenDocument Text Template | ✔️ | ✔️ |
RTF |
Rich Text Document | ✔️ | ✔️ |
TXT |
Plain Text Document | ✔️ | ✔️ |
CSV |
Comma Separated Values File | ✔️ | ✔️ |
HTML |
HyperText Markup Language (HTML) | ✔️ | ✔️ |
MHT |
Mime HTML (MHTML) | ✔️ | ✔️ |
MHTML |
Mime HTML (MHTML) | ✔️ | ✔️ |
MOBI |
Mobipocket e-book format | ✔️ | ✔️ |
DCM |
Digital Imaging and Communications in Medicine (DICOM) | ✔️ | ✔️ |
DJVU |
Deja Vu (DjVu) | ✔️ | ✔️ |
DWG |
Autodesk Design Data Formats | ✔️ | ✔️ |
DXF |
AutoCAD Drawing Interchange | ✔️ | ✔️ |
BMP |
Bitmap Picture (BMP) | ✔️ | ✔️ |
GIF |
Graphics Interchange Format (GIF) | ✔️ | ✔️ |
JPG/JPEG |
Joint Photographic Experts Group (JPEG) | ✔️ | ✔️ |
PNG |
Portable Network Graphics (PNG) | ✔️ | ✔️ |
EML |
E-mail Message | ✔️ | ✔️ |
EMLX |
Apple Mail E-mail File | ✔️ | ✔️ |
MSG |
Microsoft Outlook E-mail Message | ✔️ | ✔️ |
CS |
CSharp Language | ✔️ | ✔️ |
JAVA |
Java Language | ✔️ | ✔️ |
CPP |
C++ Language | ✔️ | ✔️ |
JS |
JavaScript Language | ✔️ | ✔️ |
PY |
Python Language | ✔️ | ✔️ |
RB |
Ruby Language | ✔️ | ✔️ |
System Requirements
Category | Details |
---|---|
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 Requirements | GroupDocs.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");
}
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
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net20 is compatible. net35 was computed. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 2.0
- Newtonsoft.Json (>= 12.0.3)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 12.0.3)
- System.Diagnostics.TraceSource (>= 4.3.0)
- System.Net.Requests (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
24.2.0 | 141 | 2/26/2024 |
23.12.0 | 225 | 12/13/2023 |
23.4.0 | 216 | 5/2/2023 |
22.4.0 | 1,067 | 4/14/2022 |
21.7.0 | 592 | 7/16/2021 |
21.3.0 | 420 | 3/11/2021 |
20.12.0 | 425 | 12/2/2020 |
20.5.0 | 529 | 5/21/2020 |
19.5.0 | 794 | 5/21/2019 |
18.9.0 | 729 | 12/20/2018 |
18.9.0-alpha-20181220070637 | 539 | 12/20/2018 |
18.4.0 | 962 | 5/11/2018 |
18.4.0-alpha-20180511075007 | 784 | 5/11/2018 |
17.12.0 | 1,039 | 1/24/2018 |