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

This release moves the package to the GroupDocs.Comparison for Java 26.8.2 engine (version 25.11 of the package used the 25.6 engine). It adds side-by-side and interleaved views for PDF comparison, page-range comparison for PDF, a dedicated options class for Word documents and cell coordinates for spreadsheet changes. CSV, JSON and text results are easier to read, and many PDF and Excel rendering issues are fixed. More Java classes, including the option builders, are now exported from the package root.

Full list of changes in this release

KeyCategorySummary
COMPARISONNODEJSUpdateJava engine updated to GroupDocs.Comparison for Java 26.8.2
COMPARISONNODEJSFeaturePdfCompareOptions, WordCompareOptions, PagesSetup and their display mode enums are exported from the package root
COMPARISONNODEJSFeatureOption builders are exported: CompareOptions$Builder, LoadOptions$Builder, SaveOptions$Builder, PreviewOptions$Builder, StyleSettings$Builder, FileAuthorMetadata$Builder, DiagramMasterSetting$Builder
COMPARISONNODEJSFeatureConsoleLogger, CultureInfo, FontsHelper, Path, IgnoreChangeSensitivitySettings, DefaultTemporaryFileManager and TemporaryFileManagerFactory are exported
COMPARISONNET-4726, COMPARISONNET-4727FeaturePDF side-by-side and interleaved comparison views (PdfCompareOptions)
COMPARISONNET-4731FeatureCompare only a page range of a PDF document (PagesSetup)
COMPARISONNET-4685FeatureWord-specific options are available in WordCompareOptions; the same options on CompareOptions are deprecated
COMPARISONNET-4767FeatureChangeInfo.getRow(), getColumn() and getColumnHeader() report the cell of a spreadsheet change
COMPARISONNET-4769FeatureCSV result: inserted text is wrapped in (...), deleted text in [...]
COMPARISONNET-4772FeatureJSON and text results are rendered as an inline diff
COMPARISONNET-4435FixPNG comparison fixed
COMPARISONNET-4472FixExcel comparison no longer hangs
COMPARISONNET-4565FixMerging of Word paragraphs fixed
COMPARISONJAVAFixComparison of documents with tables no longer throws an exception
COMPARISONNET-4707, COMPARISONNET-4718FixPDF footers are separated from the body text correctly
COMPARISONNET-4732, COMPARISONNET-4733FixPDF documents with corrupted font subsets are handled
COMPARISONNET-4748FixExcel comparison no longer corrupts numeric and error cells such as #DIV/0!
COMPARISONNET-4751, COMPARISONNET-4763FixPDF result: paragraph wrapping, line spacing and table borders fixed
COMPARISONJAVAFixMetered and file license activation no longer fails with IllegalAccessError
COMPARISONJAVAUpdateAspose libraries updated: Words 26.3, PDF 26.2, Cells 26.3, Slides 26.2, Email 26.1, Imaging 25.12, Diagram 25.10, CAD 24.6.1 and others
COMPARISONJAVAUpdateEvaluation watermark copyright year updated to 2026

Major features

PDF side-by-side comparison view

PdfCompareOptions extends CompareOptions with PDF-specific settings. Its display mode controls the layout of the result document:

  • INLINE (default) - one merged document; deletions and insertions are highlighted on the same pages.
  • SIDE_BY_SIDE - each result page shows the source page and the matching target page next to each other.
  • INTERLEAVED - odd pages come from the source document, even pages from the target document.

In the side-by-side and interleaved modes pages are aligned before comparison, and blank pages are inserted when the page counts differ. Text changes in these modes are not returned as ChangeInfo objects; images, annotations and watermarks are still compared and marked.

PagesSetup limits comparison to a page range. setStartPage and setEndPage are 1-based and inclusive.

'use strict';

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

const comparer = new groupdocs.Comparer('source.pdf');
comparer.add('target.pdf');

const options = new groupdocs.PdfCompareOptions();
options.setDisplayMode(groupdocs.PdfCompareOptions$ComparisonDisplayMode.SIDE_BY_SIDE);

const pagesSetup = new groupdocs.PagesSetup();
pagesSetup.setStartPage(1);
pagesSetup.setEndPage(5);
options.setPagesSetup(pagesSetup);

comparer.compare('result.pdf', options);

CompareOptions.setCompareImagesPdf and setImagesInheritanceMode still work but are deprecated in favor of the same settings in PdfCompareOptions.

Word compare options

WordCompareOptions holds the options that apply to Word documents: line break marking, bookmarks, variable and document properties, revisions, gaps, track changes, revision author name and the display mode (REVISIONS or HIGHLIGHT). The same options on CompareOptions are deprecated.

Cell location for spreadsheet changes

For XLSX, CSV, ODS and other spreadsheet formats each ChangeInfo reports where the change happened. getRow() and getColumn() return zero-based indices, and getColumnHeader() returns the text of the column in the first row of the worksheet. All three return null for other formats.

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

const changes = comparer.getChanges();
for (const change of changes) {
  console.log(`Row ${change.getRow()}, column ${change.getColumn()} (${change.getColumnHeader()}): ${change.getType().name()}`);
}

Readable CSV, JSON and text results

  • A CSV result has no styling, so changes were not visible in it. Inserted text is now wrapped in parentheses and deleted text in square brackets.
  • JSON and text results are rendered as an inline diff: every source line becomes a separate block, and inserted and deleted text is marked with <ins> and <del> inside the line.

Exported classes

The following classes can now be used directly from the package root:

  • Options: PdfCompareOptions, PdfCompareOptions$ComparisonDisplayMode, WordCompareOptions, WordCompareOptions$ComparisonDisplayMode, PagesSetup, IgnoreChangeSensitivitySettings
  • Builders: CompareOptions$Builder, LoadOptions$Builder, SaveOptions$Builder, PreviewOptions$Builder, StyleSettings$Builder, FileAuthorMetadata$Builder, DiagramMasterSetting$Builder
  • Utilities: ConsoleLogger, CultureInfo, FontsHelper, Path, DefaultTemporaryFileManager, TemporaryFileManagerFactory

Package

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

npm install @groupdocs/groupdocs.comparison@26.8.2

Public API and backward incompatible changes

The public API matches GroupDocs.Comparison for Java 26.8.2. All changes are additive. The Word options on CompareOptions and CompareOptions.setCompareImagesPdf / setImagesInheritanceMode are deprecated but keep working.

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.