Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.