Last active
November 6, 2019 12:03
-
-
Save GroupDocsGists/e949f5cfd6b67eef026a14bb450515af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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