Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created November 29, 2019 12:16
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/50bc0ac4ff27812b1e2cc909aec3bf08 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/50bc0ac4ff27812b1e2cc909aec3bf08 to your computer and use it in GitHub Desktop.
string sourcePath = "source.pdf";
string targetPath = "target.pdf";
string resultPath = "source.pdf";
//do not compare header/footer
CompareOptions compareOptions = new CompareOptions();
compareOptions.HeaderFootersComparison = false;
Comparer comparer = new Comparer(sourcePath);
comparer.Add(targetPath);
comparer.Compare(File.Create(resultPath), new SaveOptions(), compareOptions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment