Using our programming API, you can compare two files and find the difference between them. In other words, our .NET library is a powerful file difference checker. After using Document Comparison API, you can get the result and save it in DOCX, PDF, DOC and some other formats.
With this native .NET API, you can easily compare documents and obtain the differences in the desired output format. Our C# library is fully self-contained and does not rely on any external tools or services. All document processing features are implemented in this powerful C# solution for a hassle-free experience.
Document comparison is a highly sought-after procedure, particularly within automated document workflows. Whether you're working with legal documents, version control systems, or content management systems, the document comparison API for C# can be a game-changer. It compares the contents of documents both at the character level and at the word level. Even if only a single character has been changed, the entire word will be marked as modified. This allows you to detect the smallest changes that would be invisible to the human eye.
There are occasions when you find yourself unsure about whether a document has been modified, and the process of manually comparing two versions of the document can be quite challenging. On the flip side, there are instances where you are confident that the document has been changed, but the task of visually locating the updated areas becomes exceedingly difficult. Let's explore some typical scenarios where automated document comparison can be incredibly useful:
By integrating automatic document comparison into your workflows, you gain the ability to programmatically compare documents, extract differences, and instantly get results in the desired output format. Whether you're a seasoned developer or just getting started with .NET, our comprehensive code snippets and online demonstration will guide you through the process.
Try out our live demo by uploading two documents, selecting the target format to highlight the differences, and examining the C# code snippet displayed on the screen. This example demonstrates in detail how to perform document comparison programmatically and obtain the results in the required file format.
An important point: the compared documents should not have revisions before calling the comparison method. You must first accept all the revisions. We have already taken care of this nuance in the C# code snippet below:
var docA = new Document("Input1.docx");
var docB = new Document("Input2.docx");
// There should be no revisions before comparison.
docA.Compare(docB, "Author Name", DateTime.Now);
There are three alternative options to install "Aspose.Words for .NET" onto your system. Please choose one that resembles your needs and follow the step-by-step instructions:
Our product is fully cross-platform and supports all major .NET implementations following '.NET Standard 2.0' specification:
As far as .NET code doesn't depend on the underlying hardware or operating system, but only on a Virtual Machine, you are free to develop any kind of software for Windows, macOS, Android, iOS and Linux. Just make sure you have installed the corresponding version of .NET Framework, .NET Core, Windows Azure, Mono or Xamarin.
We recommend using Microsoft Visual Studio, Xamarin, and MonoDevelop integrated development environments to create C#, F#, VB.NET applications.
Fore more details please refer to Product Documentation.