Skip to content

Instantly share code, notes, and snippets.

@conholdate-gists
Created April 13, 2021 19:57
Show Gist options
  • Save conholdate-gists/2321805fadc51663641102e19a8abbae to your computer and use it in GitHub Desktop.
Save conholdate-gists/2321805fadc51663641102e19a8abbae to your computer and use it in GitHub Desktop.
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