Latest Release Note (March 2024)
This page contains release notes for GroupDocs.Comparison for Java 24.3
There are 1 feature in this release.
Full list of changes in this release
ID | Summary | Category |
---|---|---|
COMPARISONJAVA-1666 | Exception when comparing PDF files | Feature |
Get changed elements coordinates from source or target document
Starting from 24.3 we’ve introduced an ability to get changed elements coordinates from source or target document. This feature currently supported for Words. Here is a code snippet how to enable this feature.
String sourcePath = "source path";
String targetPath = "target path";
String resultPath = "result path";
try(Comparer comparer = new Comparer(sourcePath)){
comparer.add(targetPath);
CompareOptions compareOptions = new CompareOptions();
compareOptions.setCalculateCoordinates(true);
compareOptions.setCalculateCoordinatesMode(CalculateCoordinatesModeEnumeration.SOURCE);
comparer.compare(resultPath, compareOptions);
}