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
| Key | Category | Summary |
|---|---|---|
| COMPARISONNODEJS | Update | Java engine updated to GroupDocs.Comparison for Java 26.8.2 |
| COMPARISONNODEJS | Feature | PdfCompareOptions, WordCompareOptions, PagesSetup and their display mode enums are exported from the package root |
| COMPARISONNODEJS | Feature | Option builders are exported: CompareOptions$Builder, LoadOptions$Builder, SaveOptions$Builder, PreviewOptions$Builder, StyleSettings$Builder, FileAuthorMetadata$Builder, DiagramMasterSetting$Builder |
| COMPARISONNODEJS | Feature | ConsoleLogger, CultureInfo, FontsHelper, Path, IgnoreChangeSensitivitySettings, DefaultTemporaryFileManager and TemporaryFileManagerFactory are exported |
| COMPARISONNET-4726, COMPARISONNET-4727 | Feature | PDF side-by-side and interleaved comparison views (PdfCompareOptions) |
| COMPARISONNET-4731 | Feature | Compare only a page range of a PDF document (PagesSetup) |
| COMPARISONNET-4685 | Feature | Word-specific options are available in WordCompareOptions; the same options on CompareOptions are deprecated |
| COMPARISONNET-4767 | Feature | ChangeInfo.getRow(), getColumn() and getColumnHeader() report the cell of a spreadsheet change |
| COMPARISONNET-4769 | Feature | CSV result: inserted text is wrapped in (...), deleted text in [...] |
| COMPARISONNET-4772 | Feature | JSON and text results are rendered as an inline diff |
| COMPARISONNET-4435 | Fix | PNG comparison fixed |
| COMPARISONNET-4472 | Fix | Excel comparison no longer hangs |
| COMPARISONNET-4565 | Fix | Merging of Word paragraphs fixed |
| COMPARISONJAVA | Fix | Comparison of documents with tables no longer throws an exception |
| COMPARISONNET-4707, COMPARISONNET-4718 | Fix | PDF footers are separated from the body text correctly |
| COMPARISONNET-4732, COMPARISONNET-4733 | Fix | PDF documents with corrupted font subsets are handled |
| COMPARISONNET-4748 | Fix | Excel comparison no longer corrupts numeric and error cells such as #DIV/0! |
| COMPARISONNET-4751, COMPARISONNET-4763 | Fix | PDF result: paragraph wrapping, line spacing and table borders fixed |
| COMPARISONJAVA | Fix | Metered and file license activation no longer fails with IllegalAccessError |
| COMPARISONJAVA | Update | Aspose 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 |
| COMPARISONJAVA | Update | Evaluation 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.