Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Compare PDF Files and Highlight Differences using GroupDocs.Comparison for C# API
Compare PDF Files using C#
1. Compare Two PDF Files using C#
2. Compare Password Protected PDF Files using C#
using (Comparer comparer = new Comparer("C:\\Files\\source.pdf", new LoadOptions() { Password = "1234" }))
{
comparer.Add("C:\\Files\\target.pdf", new LoadOptions() { Password = "5678" });
comparer.Compare("C:\\Files\\result.pdf");
}
using (Comparer comparer = new Comparer("C:\\Files\\source.pdf"))
{
comparer.Add("C:\\Files\\target.pdf");
comparer.Compare("C:\\Files\\result.pdf");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment