GroupDocs.Comparison for Java 23.10 Release Notes
There are 10 features and bug fixes in this release.
Full list of changes in this release
Key | Category | Summary |
---|---|---|
COMPARISONNET‑3376 | Feature | Setting author of changes |
COMPARISONNET‑3389 | Feature | Implemented ability to compare folders |
COMPARISONJAVA‑1581 | Feature | Enable users to have full control and flexibility in managing temporary files |
COMPARISONNET‑3280 | Fix | Exception throws when comparing vsdx files |
COMPARISONNET‑3352 | Fix | Watermark placement changes are not detected in Word comparison |
COMPARISONNET‑3380 | Fix | Word comparison doesn’t show what style changes have been made |
COMPARISONNET‑3379 | Fix | Comparer#compare does not terminate when comparing documents |
COMPARISONNET‑3280 | Fix | Exception occurs when selecting accepted changes |
COMPARISONNET‑3450 | Fix | Exception when user compare the same documents |
COMPARISONNET‑3484 | Fix | Exception when comparing text files |
Major Features
- Added setting author of changes
- Implemented folder comparison feature
- Added functionality to have full control in managing temporary files
- Added changes to summary page that will indicate that user trying to compare the same documents for all supported document types
- Fixed exception with comparing vsdx documents
- Fixed issue with watermark offset being ignored
- Fixed issue with ignoring style changes in Word format
- Fixed issue of stopping the program on Comparer#compare
- Fixed exception when selecting accepted changes
- Fixed exception when comparing text files
Public API and backward incompatible changes
Watermark Coordinate Change Detection
Before 23.10 the fact of changing watermark position on Words documents was not detected. We have added ability to detect watermark position change:
Setting author of changes
To set new author of changes, use the following code:
try (Comparer comparer = new Comparer(sourcePath)) {
comparer.add(targetPath);
CompareOptions compareOptions = new CompareOptions();
compareOptions.setShowRevisions(true);
compareOptions.setWordTrackChanges(true);
compareOptions.setRevisionAuthorName("New author");
comparer.compare(resultPath, compareOptions);
}
For details, see the GroupDocs.Comparison for Java documentation.
Folders comparison
Starting from 23.10 we have added ability to compare folders. The following code snippet shows how to compare folders:
CompareOptions compareOptions = new CompareOptions();
compareOptions.setDirectoryCompare(true);
try (Comparer comparer = new Comparer("C:\\folder1\\", compareOptions)) {
comparer.add("C:\\folder2\\", compareOptions);
comparer.compare("C:\\res.html", compareOptions);
}
For details, see the GroupDocs.Comparison for Java documentation.
Temporary files
Starting from 23.10 we have added ability to control and override logic of creating temporary files and folders which are used by GroupDocs.Comparison for Java. The following code snippet shows how to override the logic:
TemporaryFileManagerFactory.setInstance(new CustomTemporaryFileManager());
For details, see the GroupDocs.Comparison for Java documentation.