Created
October 23, 2019 08:34
-
-
Save GroupDocsGists/3855a6c7c8b983c47c12ad5e24d7068c 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
Comparer comparer = new Comparer(); | |
// Settings | |
ComparisonSettings comparisonSettings = new ComparisonSettings(); | |
comparisonSettings.setCalculateComponentCoordinates(true); | |
// Compare documents | |
ICompareResult compareResult = comparer.compare(sourcePath, targetName, comparisonSettings); | |
// Getting sizes of the first change | |
ChangeInfo[] changes = compareResult.getChanges(); | |
// Coordinates of first change | |
final Rectangle rectangle = changes[0].getBox(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment