What’s new in this release
GroupDocs.Viewer for Node.js via Java 25.12 (December 2025) adds four improvements and one bug fix. The changes focus on keeping the library aligned with the latest runtime versions, polishing the developer experience, and fixing a critical raster‑conversion issue.
| Item | Category | Summary |
|---|---|---|
| VIEWERNODEJS‑174 | Improvement | Full support for the latest supported versions of Node.js and Java – core dependencies have been updated and compatibility verified with current LTS releases. |
| VIEWERNODEJS‑176 | Improvement | Documentation and GitHub sample code are now synchronized; logging was added and the examples follow the same structure as the docs. |
| VIEWERNODEJS‑177 | Improvement | All code snippets in the documentation have been turned into stand‑alone, ready‑to‑run scripts – no extra imports or setup steps are required. |
| VIEWERNODEJS‑178 | Improvement | New “Running in Docker” documentation topic that walks you through containerising GroupDocs.Viewer for CI/CD pipelines. |
| VIEWERNODEJS‑70 | Bug fix | Fixed the EPS → JPG conversion that previously produced a blank white image. The conversion now renders the EPS content correctly on both Windows and Linux. |
Major feature highlights
- EPS to JPG conversion fix – reliable raster output for EPS documents.
- Support for the latest Node.js & Java – seamless integration with modern build tools.
- Synchronized, standalone code samples – copy‑paste ready scripts speed up onboarding.
Code examples
1. Rendering a document to embedded‑resource HTML (stand‑alone script)
import { Viewer, HtmlViewOptions } from '@groupdocs/groupdocs.viewer';
// Input document to render
const viewer = new Viewer('resume.docx');
// Output configuration:
// - Embedded resources produces a single self‑contained HTML per page.
// - "page_{0}.html" is a filename pattern where {0} is the page number.
const viewOptions = HtmlViewOptions.forEmbeddedResources('page_{0}.html');
// Render document pages to HTML
viewer.view(viewOptions);
This example (VIEWERNODEJS‑177) demonstrates the newly refactored, copy‑paste‑ready script that works out of the box.
2. Converting EPS to JPG (fixed bug)
import { Viewer, License, JpgViewOptions } from '@groupdocs/groupdocs.viewer';
// Optional: apply your license before rendering
const license = new License();
license.setLicense('GroupDocs.Viewer.lic');
// Input EPS document
const viewer = new Viewer('sample.eps');
// Output configuration: render each page to a JPEG file using the pattern below
const viewOptions = new JpgViewOptions('page_{0}.jpg');
// Render EPS pages to JPG
viewer.view(viewOptions);
// Optional: exit explicitly in short‑lived scripts/CI jobs
process.exit(0);
The EPS → JPG pipeline now produces correct images (VIEWERNODEJS‑70).
How to get the update
# Install the latest 25.12 package from npm
npm install @groupdocs/groupdocs.viewer@25.12
Tip: The package works with the current LTS releases of Node.js and Java. For containerised workflows, see the Docker guidance below.
Resources
- GitHub code examples – https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-Node.js-via-Java
- System requirements – https://docs.groupdocs.com/viewer/nodejs-java/system-requirements/
- Running in Docker – https://docs.groupdocs.com/viewer/nodejs-java/running-in-docker/
- Installation guide – https://docs.groupdocs.com/viewer/nodejs-java/installation/
- Free Support Forum – https://forum.groupdocs.com/c/viewer/9