GroupDocs.Comparison for Node.js via Java 26.10 Release Notes

This release moves the package to the GroupDocs.Comparison for Java 26.10 engine and includes all changes of the Java 26.9 and 26.10 releases. External resources referenced by documents are no longer loaded by default, and a number of PDF comparison issues are fixed.

Full list of changes in this release

KeyCategorySummary
COMPARISONNODEJSUpdateJava engine updated to GroupDocs.Comparison for Java 26.10
COMPARISONNET-4866, COMPARISONNET-4881FeatureExternal resources referenced by a document are no longer loaded by default; new LoadOptions settings control it
COMPARISONJAVA-1756FixPDF comparison no longer fails on documents that use a blend mode
COMPARISONJAVAFixFailures while opening a PDF are no longer reported as Incorrect password.
COMPARISONJAVAFixIllegalArgumentException: <class> is not an enum type no longer thrown for internal enums
COMPARISONJAVA-1667FixApplying changes to a .html file writes the HTML report again
COMPARISONJAVA-1674FixA temp directory that is a symbolic link (/tmp on macOS) no longer fails with FileAlreadyExistsException
COMPARISONNET-4892, COMPARISONNET-4893FixFaster PDF result rendering; duplicated and interleaved characters in the PDF result fixed
COMPARISONNET-2370FixPDF table cells keep their own line breaks, and text added by the comparison stays inside the cell
COMPARISONNET-4911FixSide-by-side PDF comparison no longer reports content pushed onto the next page as deleted and re-inserted
COMPARISONNET-4896FixInline PDF comparison no longer draws moved lines on top of other lines
COMPARISONNET-4883, COMPARISONNET-4887FixPresentation and Word comparison no longer fails on a picture that has no image data
COMPARISONNET-4773UpdateRevisionHandler closes the stream it opened and takes a leaveOpen flag for a stream passed by the caller
COMPARISONJAVAUpdateWordCompareOptions.isWordTrackChanges() follows the display mode
COMPARISONNET-4878UpdateFile type detection no longer labels a stream as EPUB just because it can be opened as one

Behavior changes to check before upgrading

  • External resources are not loaded unless LoadOptions.setSkipExternalResources(false) is set.
  • A RevisionHandler created for a stream now closes the stream when the handler is closed. Pass leaveOpen = true to keep it open.
  • WordCompareOptions.isWordTrackChanges() returns true for a new instance, following the default display mode REVISIONS.

Major features

Control over loading external resources

A document can reference resources outside itself, for example an image given by a remote URL. Opening such a document used to make the comparison fetch that address. External resources are now skipped by default, and two LoadOptions settings control the behavior:

  • setSkipExternalResources(boolean) - true by default; set false to load external resources.
  • setWhitelistedResources(List<String>) - URL fragments that are still loaded while other resources are skipped.
'use strict';

const java = require('java');
const groupdocs = require('@groupdocs/groupdocs.comparison');

const whitelist = java.newInstanceSync('java.util.ArrayList');
whitelist.add('includepicture-field.png');

const loadOptions = new groupdocs.LoadOptions();
loadOptions.setSkipExternalResources(true);
loadOptions.setWhitelistedResources(whitelist);

const comparer = new groupdocs.Comparer('source.docx', loadOptions);
comparer.add('target.docx', loadOptions);
comparer.compare('result.docx');

The settings apply to HTML, Word and presentation documents. Scripts, links and form targets of HTML documents are never loaded during comparison.

PDF comparison fixes

  • Documents that use a blend mode no longer fail to compare.
  • Errors raised while opening a PDF are no longer reported as an incorrect password.
  • The PDF result is rendered faster, and characters are no longer duplicated or interleaved (self self--explanatoryexplanatory is now self-explanatory self-explanatory).
  • Table cells keep their own line breaks, and text added by the comparison stays inside the cell.
  • Side-by-side comparison no longer reports content that moved to the next page as deleted and re-inserted.
  • Inline comparison no longer draws lines that moved to another position on top of other lines.

Package

The package is available on npm: @groupdocs/groupdocs.comparison.

npm install @groupdocs/groupdocs.comparison@26.10.0

Public API and backward incompatible changes

The public API matches GroupDocs.Comparison for Java 26.10. New methods: LoadOptions.setSkipExternalResources(), LoadOptions.setWhitelistedResources() and a RevisionHandler constructor with the leaveOpen flag. See Behavior changes to check before upgrading.

Feedback

We value your feedback! If you have any questions, issues, or suggestions, feel free to reach out to us through our Free Support Forum. Our team will be happy to assist you and answer any questions you may have.