Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Last active November 6, 2019 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GroupDocsGists/e949f5cfd6b67eef026a14bb450515af to your computer and use it in GitHub Desktop.
Save GroupDocsGists/e949f5cfd6b67eef026a14bb450515af to your computer and use it in GitHub Desktop.
using (Comparer comparer = new Comparer("source.pdf"))
{
comparer.Add("target.pdf");
comparer.Compare();
ChangeInfo[] changes = comparer.GetChanges();
changes[0].ComparisonAction = ComparisonAction.Reject;
comparer.ApplyChanges(File.Create("result.pdf"), new SaveOptions(), new ApplyChangeOptions() { Changes = changes });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment