Skip to content

Instantly share code, notes, and snippets.

@GroupDocsGists
Created November 29, 2019 12:05
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/29d72ee453257df10c4051cb19e16807 to your computer and use it in GitHub Desktop.
Save GroupDocsGists/29d72ee453257df10c4051cb19e16807 to your computer and use it in GitHub Desktop.
string sourcePath = "source.docx";
string targetPath = "target.docx";
string resultPath = "result.docx";
CompareOptions compareOptions = new CompareOptions();
compareOptions.PaperSize = PaperSize.A4;
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