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

KeyCategorySummary
COMPARISONNET‑3376FeatureSetting author of changes
COMPARISONNET‑3389FeatureImplemented ability to compare folders
COMPARISONJAVA‑1581FeatureEnable users to have full control and flexibility in managing temporary files
COMPARISONNET‑3280FixException throws when comparing vsdx files
COMPARISONNET‑3352FixWatermark placement changes are not detected in Word comparison
COMPARISONNET‑3380FixWord comparison doesn’t show what style changes have been made
COMPARISONNET‑3379FixComparer#compare does not terminate when comparing documents
COMPARISONNET‑3280FixException occurs when selecting accepted changes
COMPARISONNET‑3450FixException when user compare the same documents
COMPARISONNET‑3484FixException 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: Compare watermark example

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);
    }

set new author of changes example 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);
    }

Folder comparison function

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.