GroupDocs.Comparison 24.11.0-alpha-20241128043627

This is a prerelease version of GroupDocs.Comparison.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package GroupDocs.Comparison --version 24.11.0-alpha-20241128043627                
NuGet\Install-Package GroupDocs.Comparison -Version 24.11.0-alpha-20241128043627                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GroupDocs.Comparison" Version="24.11.0-alpha-20241128043627" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GroupDocs.Comparison --version 24.11.0-alpha-20241128043627                
#r "nuget: GroupDocs.Comparison, 24.11.0-alpha-20241128043627"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GroupDocs.Comparison as a Cake Addin
#addin nuget:?package=GroupDocs.Comparison&version=24.11.0-alpha-20241128043627&prerelease

// Install GroupDocs.Comparison as a Cake Tool
#tool nuget:?package=GroupDocs.Comparison&version=24.11.0-alpha-20241128043627&prerelease                

Document Comparison .NET API

Package version Package downloads.NET

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Releases | Free Support | Temporary License

On-premise library to compare documents in applications based on .NET platform. Retrieve the list of changes in the desired format with a line-by-line comparison of content, paragraphs, characters, styles, shapes, and position.

Please note: our library implies the use of .NET programming languages, compatible with CLI infrastructure. For Node.js, Java and Python languages, we recommend you get GroupDocs.Comparison for Node.js, GroupDocs.Comparison for Java and GroupDocs.Comparison for Python, respectively.

Document Comparison Features

Supported Microsoft Office Formats

Microsoft Word: DOC, DOCM, DOCX, DOT, DOTM, DOTX
Microsoft Excel: XLS, XLT, XLSX, XLTM, XLSB, XLSM, XLSX, CSV
Microsoft PowerPoint: POT, POTX, PPS, PPSX, PPTX, PPT
Microsoft OneNote: ONE
Microsoft Visio: VSDX, VSD, VSS, VST, VDX

Other Supported Formats

OpenDocument: ODT, ODP, OTP, ODS, OTT
Fixed Layout: PDF
AutoCAD: DWG, DXF
Email: EML, EMLX, MSG
Images: BMP, GIF, JPG, JPEG, PNG
Web: HTM, HTML, MHT, MHTML
Text: RTF, TXT
eBook: MOBI, DjVu
Medical Imaging: DCM
Programming Language: CS, JAVA, CPP, JS, PY, RB

Develop & Deploy GroupDocs.Comparison Anywhere

Microsoft Windows: Windows Azure, Microsoft Windows Desktop (x86, x64), Microsoft Windows Server (x86, x64)
macOS: Mac OS X
Linux: Ubuntu, OpenSUSE, CentOS, and others
Development Environments: Microsoft Visual Studio (2010 & up), Xamarin.Android, Xamarin.IOS, Xamarin.Mac, MonoDevelop 2.4 and later
Supported Frameworks: .NET Standard 2.0, .NET Framework 2.0 or higher, .NET Core 2.0 or higher, Mono Framework 1.2 or higher

Get Started

Are you ready to give GroupDocs.Comparison for .NET a try? Simply execute Install-Package GroupDocs.Comparison from Package Manager Console in Visual Studio to fetch & reference GroupDocs.Comparison assembly in your project. If you already have GroupDocs.Comparison for .NET and want to upgrade it, please execute Update-Package GroupDocs.Comparison to get the latest version.

Compare PDF Files in C# Code

// Specify the source document
using (Comparer comparer = new Comparer("source.pdf"))
{
    // Add one or more target documents
    comparer.Add("target.pdf");

    // Compare and save result
    comparer.Compare("result.pdf", options);
}

Compare JSON Files and get list of changes via C#

// Initialize the comparer with the source JSON file
using (Comparer comparer = new Comparer("source.json"))
{
    // Add the target JSON file for comparison
    comparer.Add("target.json");

    // Compare the files (changes are tracked internally)
    comparer.Compare();

    // Retrieve the list of changes between the source and target files
    ChangeInfo[] changes = comparer.GetChanges();

    // Iterate through each change and display its details
    foreach (ChangeInfo change in changes)
        Console.WriteLine("Change Type: {0}, Change ID: {1}, Text: {2}", 
            change.Type, 
            change.Id, 
            change.Text
        );
}

Get file info for the DOCX file with C#

// Initialize the comparer with the source DOCX file
using (Comparer comparer = new Comparer("source.docx"))
{
    // Retrieve document metadata such as page count and size
    IDocumentInfo info = comparer.Source.GetDocumentInfo();

    // Iterate through each page to display detailed information
    for (int i = 0; i < info.PageCount; i++)
    {
        Console.WriteLine("\n" +
            "Page number: {5}\n" +              // Current page number
            "File type: {0}\n" +                // Type of the file
            "Number of pages: {1}\n" +          // Total page count
            "Document size: {2} bytes\n" +      // File size in bytes
            "Width: {3}\n" +                    // Width of the current page
            "Height: {4} ",                     // Height of the current page
            info.FileType, 
            info.PageCount, 
            info.Size, 
            info.PagesInfo[i].Width, 
            info.PagesInfo[i].Height, 
            i + 1                               // Adjust page index to 1-based numbering
        );
    }
}

Compare PNG Files using C# and customize changes styles

// Initialize the comparer with the source PNG file
using (Comparer comparer = new Comparer("source.png"))
{
    // Add the target PNG file for comparison
    comparer.Add("target.png");

    // Define custom styles for inserted and deleted items
    CompareOptions compareOptions = new CompareOptions()
    {
        InsertedItemStyle = new StyleSettings()
        {
            // Highlight inserted items in green
            HighlightColor = System.Drawing.Color.Green,
            FontColor = System.Drawing.Color.Green,
        },
        DeletedItemStyle = new StyleSettings()
        {
            // Highlight deleted items in red
            HighlightColor = System.Drawing.Color.Red,
            FontColor = System.Drawing.Color.Red,
        }
    };

    // Perform the comparison and save the result with the customized styles
    comparer.Compare("result.png", compareOptions);
}

Product Page | Docs | Demos | API Reference | Examples | Blog | Releases | Free Support | Temporary License

Product 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net462 is compatible.  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 tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.12.1-alpha-20250110063050 0 1/10/2025
24.12.0-alpha-20241230041429 1 12/30/2024
24.11.0-alpha-20241211041843 1 12/11/2024
24.11.0-alpha-20241128043627 0 11/28/2024
24.10.0-alpha-20241122075547 1 11/22/2024
24.10.0-alpha-20241030064844 0 10/30/2024
24.10.0-alpha-20241030040723 0 10/30/2024
24.9.0-alpha-20240926041503 5 9/26/2024
24.8.0-alpha-20240828132605 2 8/28/2024
24.7.1-alpha-20240827060828 2 8/27/2024
24.7.1-alpha-20240827044631 2 8/27/2024
24.7.1-alpha-20240822073906 2 8/22/2024
24.7.1-alpha-20240819004908 2 8/19/2024
24.7.0-alpha-20240729084419 2 7/29/2024
24.6.0-alpha-20240709021714 2 7/9/2024
24.6.0-alpha-20240627042034 2 6/27/2024
24.5.0-alpha-20240619065701 2 6/19/2024
24.5.0-alpha-20240619013312 3 6/19/2024
24.5.0-alpha-20240618034814 4 6/18/2024
24.5.0-alpha-20240531040511 2 5/31/2024
24.5.0-alpha-20240529014132 6 5/29/2024
24.4.2-alpha-20240520031036 2 5/20/2024
24.4.1-alpha-20240514042324 3 5/14/2024
24.4.0-alpha-20240506064756 3 5/6/2024
24.4.0-alpha-20240506031544 3 5/6/2024
24.4.0-alpha-20240429071219 2 4/29/2024
24.3.0-alpha-20240412021810 3 4/12/2024
24.3.0-alpha-20240328053241 3 3/28/2024
24.2.0-alpha-20240314044912 5 3/14/2024
24.2.0-alpha-20240229025500 2 2/29/2024
24.2.0-alpha-20240228052037 2 2/28/2024
24.1.0-alpha-20240129094623 3 1/29/2024
23.12.0-alpha-20240111091221 4 1/11/2024
23.12.0-alpha-20231214071202 3 12/14/2023
23.11.0-alpha-20231212085821 2 12/12/2023
23.11.0-alpha-20231212050818 2 12/12/2023
23.11.0-alpha-20231204080320 3 12/4/2023
23.11.0-alpha-20231127035144 2 11/27/2023
23.10.0-alpha-20231031055327 3 10/31/2023
23.9.0-alpha-20230922064638 3 9/22/2023
23.9.0-alpha-20230922051506 4 9/22/2023
23.8.0-alpha-20230914052001 3 9/14/2023
23.8.0-alpha-20230913100836 2 9/13/2023
23.8.0-alpha-20230908052428 3 9/8/2023
23.8.0-alpha-20230907101328 3 9/7/2023
23.8.0-alpha-20230830043318 4 8/30/2023
23.6.0-alpha-20230629104942 4 6/29/2023
23.4.0-alpha-20230613045922 3 6/13/2023
23.4.0-alpha-20230516040329 3 5/16/2023
23.4.0-alpha-20230426093536 4 4/26/2023
23.4.0-alpha-20230426075502 1 4/26/2023
23.4.0-alpha-20230426061023 4 4/26/2023
23.4.0-alpha-20230426044519 4 4/26/2023
23.3.0-alpha-20230313094831 2 3/13/2023
23.1.0-alpha-20230130045624 2 1/30/2023
23.1.0-alpha-20230127083430 2 1/27/2023
23.1.0-alpha-20230124100433 8 1/24/2023
22.11.1-alpha-20230323050821 4 3/23/2023
22.11.0-alpha-20221205082203 2 12/5/2022
22.11.0-alpha-20221202083504 2 12/2/2022
22.11.0-alpha-20221130042225 4 11/30/2022
22.10.0-alpha-20221124054945 7 11/24/2022
22.10.0-alpha-20221123053535 3 11/23/2022
22.10.0-alpha-20221122071748 3 11/22/2022
22.10.0-alpha-20221118095222 4 11/18/2022
22.10.0-alpha-20221117073213 3 11/17/2022
22.10.0-alpha-20221027075929 3 10/27/2022
22.10.0-alpha-20221027061012 2 10/27/2022
22.10.0-alpha-20221025072534 4 10/25/2022
22.10.0-alpha-20221025051305 4 10/25/2022
22.10.0-alpha-20221024064833 5 10/24/2022
22.8.1-alpha-20230322053448 5 3/22/2023
22.8.0-alpha-20220819033038 3 8/19/2022
22.8.0-alpha-20220818090921 3 8/18/2022
22.6.1-alpha-20230320101839 6 3/20/2023
22.6.0-alpha-20220622083120 4 6/22/2022
22.5.0-alpha-20220617090642 5 6/17/2022
22.5.0-alpha-20220602090537 2 6/2/2022
22.5.0-alpha-20220602083912 2 6/2/2022
22.5.0-alpha-20220602080345 2 6/2/2022
22.5.0-alpha-20220602073923 2 6/2/2022
22.5.0-alpha-20220601075003 2 6/1/2022
22.5.0-alpha-20220601053951 2 6/1/2022
22.5.0-alpha-20220531102801 2 5/31/2022
22.5.0-alpha-20220531095149 2 5/31/2022
22.5.0-alpha-20220531091109 2 5/31/2022
22.4.0-alpha-20220503021744 2 5/3/2022
22.4.0-alpha-20220429100246 2 4/29/2022
22.4.0-alpha-20220429042440 1 4/29/2022
22.4.0-alpha-20220428090827 2 4/28/2022
22.4.0-alpha-20220427134610 3 4/27/2022
22.3.0-alpha-20220330064202 2 3/30/2022
22.1.0-alpha-20220128072008 2 1/28/2022
21.12.0-alpha-20211221043917 2 12/21/2021
21.11.0-alpha-20211129060335 3 11/29/2021
21.10.0-alpha-20211028065801 3 10/28/2021
21.9.0-alpha-20210928042406 4 9/28/2021
21.8.0-alpha-20210827085408 4 8/27/2021
21.7.0-alpha-20210729071116 3 7/29/2021
21.6.0-alpha-20210723035349 2 7/23/2021
21.6.0-alpha-20210721085923 6 7/21/2021
21.6.0-alpha-20210721074024 3 7/21/2021
21.6.0-alpha-20210721063722 2 7/21/2021
21.6.0-alpha-20210720051044 3 7/20/2021
21.6.0-alpha-20210716074610 3 7/16/2021
21.6.0-alpha-20210625101354 6 6/25/2021
21.5.0-alpha-20210603060746 4 6/3/2021
21.5.0-alpha-20210527090714 5 5/27/2021
21.4.0-alpha-20210429092305 3 4/29/2021
21.4.0-alpha-20210429035140 7 4/29/2021
21.3.0-alpha-20210413080340 6 4/13/2021
21.3.0-alpha-20210330073833 10 3/30/2021
21.3.0-alpha-20210330063703 2 3/30/2021
21.2.0-alpha-20210225091714 35 2/25/2021
21.1.0-alpha-20210128061016 27 1/28/2021
20.12.0-alpha-20201218075803 18 12/18/2020
20.11.0-alpha-20201127061632 8 11/27/2020
20.10.0-alpha-20201030054014 27 10/30/2020
20.10.0-alpha-20201029104928 5 10/29/2020
20.9.0-alpha-20200928093545 18 9/28/2020
20.8.0-alpha-20200828061431 81 8/28/2020
20.8.0-alpha-20200827102051 3 8/27/2020
20.7.0-alpha-20200827031110 3 8/27/2020
20.7.0-alpha-20200825102531 3 8/25/2020
20.7.0-alpha-20200731072606 30 7/31/2020
20.7.0-alpha-20200731062514 5 7/31/2020
20.7.0-alpha-20200731042032 5 7/31/2020
20.7.0-alpha-20200730022808 5 7/30/2020
20.6.0-alpha-20200706031107 14 7/6/2020
20.6.0-alpha-20200626075351 15 6/26/2020
20.6.0-alpha-20200625075222 11 6/25/2020
20.5.0-alpha-20200529065158 19 5/29/2020
20.5.0-alpha-20200529041729 3 5/29/2020
20.4.2-alpha-20200508122102 11 5/8/2020
20.4.2-alpha-20200506090803 9 5/6/2020
20.4.2-alpha-20200505092610 8 5/5/2020
20.4.1-alpha-20200430101326 3 4/30/2020
20.4.0-alpha-20200430071715 4 4/30/2020
20.4.0-alpha-20200429082520 7 4/29/2020
20.3.1-alpha-20200423102259 24 4/23/2020
20.3.1-alpha-20200421092400 4 4/21/2020
20.3.1-alpha-20200416093257 5 4/16/2020
20.3.1-alpha-20200416075323 2 4/16/2020
20.3.1-alpha-20200416052321 2 4/16/2020
20.3.1-alpha-20200415104500 2 4/15/2020
20.3.1-alpha-20200414092230 2 4/14/2020
20.3.1-alpha-20200413103613 4 4/13/2020
20.3.1-alpha-20200410043543 4 4/10/2020
20.3.1-alpha-20200408105053 2 4/8/2020
20.3.1-alpha-20200403085855 2 4/3/2020
20.3.0-alpha-20200402024602 2 4/2/2020
20.3.0-alpha-20200330032248 2 3/30/2020
20.2.0-alpha-20200227081101 14 2/27/2020
20.1.0-alpha-20200124090135 20 1/24/2020
20.1.0-alpha-20200124023609 2 1/24/2020
20.1.0-alpha-20200123082058 4 1/23/2020
19.12.0-alpha-20191218071105 28 12/18/2019
19.11.0-alpha-20191129075834 7 11/29/2019
19.11.0-alpha-20191129033058 5 11/29/2019
19.11.0-alpha-20191128072248 7 11/28/2019
19.10.0-alpha-20191024071446 45 10/24/2019
19.10.0-alpha-20191024061119 2 10/24/2019
19.10.0-alpha-20191024034256 2 10/24/2019
19.10.0-alpha-20191018082234 3 10/18/2019
19.9.1-alpha-20191015071033 2 10/15/2019
19.9.1-alpha-20191007080704 2 10/7/2019
19.9.0-alpha-20190913064013 4 9/13/2019
19.8.0-alpha-20190912094919 2 9/12/2019
19.8.0-alpha-20190912074433 2 9/12/2019
19.8.0-alpha-20190912043121 2 9/12/2019
19.8.0-alpha-20190911015721 3 9/11/2019
19.8.0-alpha-20190910102909 11 9/10/2019
19.8.0-alpha-20190905092438 3 9/5/2019
19.8.0-alpha-20190905065721 2 9/5/2019
19.8.0-alpha-20190905050535 2 9/5/2019
19.8.0-alpha-20190830071603 2 8/30/2019
19.8.0-alpha-20190829081457 2 8/29/2019
19.8.0-alpha-20190827064847 2 8/27/2019
19.8.0-alpha-20190822044923 1 8/22/2019
19.6.0-alpha-20190627035040 4 6/27/2019
19.6.0-alpha-20190626101156 2 6/26/2019
19.5.0-alpha-20190522072330 3 5/22/2019
19.5.0-alpha-20190522060056 2 5/22/2019
19.5.0-alpha-20190521081704 2 5/21/2019
19.5.0-alpha-20190521074348 3 5/21/2019
19.3.1-alpha-20190321031321 16 3/21/2019
19.3.0-alpha-20190320113433 1 3/20/2019
19.3.0-alpha-20190320011844 3 3/20/2019
19.3.0-alpha-20190318060546 2 3/18/2019
19.3.0-alpha-20190311053257 6 3/11/2019
19.3.0-alpha-20190307090800 2 3/7/2019
19.3.0-alpha-20190307064835 2 3/7/2019
19.1.0-alpha-20190124024719 2 1/24/2019
18.11.0-alpha-20181204030040 2 12/4/2018
18.10.0-alpha-20181102034620 2 11/2/2018
18.9.0-alpha-20180928043343 2 9/28/2018
18.9.0-alpha-20180928024948 2 9/28/2018
18.8.0-alpha-20180830063821 4 8/30/2018
18.7.1-alpha-20180803041819 36 8/3/2018
18.7.1-alpha-20180803034814 4 8/3/2018
18.7.0-alpha-20180827203254 4 8/27/2018
18.7.0-alpha-20180827175232 4 8/27/2018
18.7.0-alpha-20180822150820 4 8/22/2018
18.7.0-alpha-20180719093030 4 7/19/2018
18.7.0-alpha-20180719062717 4 7/19/2018
18.7.0-alpha-20180718084333 7 7/18/2018
18.6.0-alpha-20180614080547 10 6/14/2018
18.6.0-alpha-20180614062555 8 6/14/2018
18.5.0-alpha-20180515080847 37 5/15/2018
18.5.0-alpha-20180515072640 9 5/15/2018
18.5.0-alpha-20180515024020 9 5/15/2018
18.4.0-alpha-20180418023708 10 4/18/2018
18.4.0-alpha-20180411064413 10 4/11/2018
18.3.0-alpha-20180307065658 10 3/7/2018
18.2.0-alpha-20180208044758 10 2/8/2018
18.2.0-alpha-20180207081412 10 2/7/2018
18.1.0-alpha-20180115084949 10 1/15/2018
17.12.0-alpha-20171204171300 9 12/4/2017
17.12.0-alpha-20171204142934 10 12/4/2017
17.12.0-alpha-20171204141810 9 12/4/2017
17.11.0-alpha-20171027070220 2 10/27/2017
17.10.0-alpha-20170926154842 7 9/26/2017
17.10.0-alpha-20170926094954 6 9/26/2017
17.10.0-alpha-20170926093133 5 9/26/2017