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 การปรับปรุง รองรับอย่างเต็มที่สำหรับเวอร์ชันล่าสุดที่สนับสนุนของ Node.js และ Java – มีการอัปเดตการพึ่งพาหลักและตรวจสอบความเข้ากันได้กับรุ่น LTS ปัจจุบัน
VIEWERNODEJS‑176 การปรับปรุง เอกสารและโค้ดตัวอย่างบน GitHub ตอนนี้ตรงกัน; เพิ่มการบันทึกล็อกและตัวอย่างทำตามโครงสร้างเดียวกับเอกสาร
VIEWERNODEJS‑177 การปรับปรุง โค้ดสแน็ปทั้งหมดในเอกสารได้ถูกแปลงเป็น สคริปต์อิสระพร้อมทำงานได้ทันที – ไม่ต้องมีการนำเข้าเพิ่มเติมหรือขั้นตอนตั้งค่าใด ๆ
VIEWERNODEJS‑178 การปรับปรุง เพิ่มหัวข้อ “Running in Docker” ที่อธิบายขั้นตอนการคอนเทนเนอไรซ์ GroupDocs.Viewer สำหรับ pipeline CI/CD
VIEWERNODEJS‑70 แก้ไขข้อบกพร่อง แก้ไขการแปลง EPS → JPG ที่เคยสร้างภาพสีขาวเปล่าอยู่ก่อนหน้านี้; ตอนนี้การแปลงจะแสดงเนื้อหา EPS อย่างถูกต้องบน Windows และ 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