Product Page | Docs | Demos | API Reference | Blog | Search | Free Support | Temporary License
GroupDocs.Viewer for Node.js via Java is a powerful document rendering API that helps you build high-performance document viewer applications in Node.js. Convert and preview popular file formats — including DOCX, XLSX, PPTX, PDF, CAD drawings, emails, archives, and many more — to HTML, PDF, PNG, and JPEG without installing Microsoft Office or other third-party software.
These ready-to-run code examples show how to integrate GroupDocs.Viewer into your Node.js projects quickly and explore the most common rendering scenarios.
- Wide Format Support: Render Microsoft Office documents, PDFs, OpenDocument files, images, emails, archives, CAD drawings, and more.
- Flexible Output Formats: Generate HTML (embedded or external resources), PDF, PNG, and JPEG from a single API.
- Smart Format Detection: Automatically detect the input file type and apply the right rendering options.
- Rich Rendering Options: Control page size, resolution, watermarks, comments, notes, CAD layouts, Outlook folders, and other document-specific settings.
- Cross-Platform: Works on Windows, Linux, and macOS with Node.js and a Java runtime.
GroupDocs.Viewer for Node.js via Java supports a wide range of file formats, including Word, Excel, PowerPoint, PDF, OpenDocument, Image, Email, Visio, Project, EPUB, archives, CAD, and many others. See the full list of supported formats for details.
-
Set Up Environment: Ensure that Node.js 20 LTS (or newer) and a compatible Java runtime are installed on your system.
-
Get the Code: Clone or download this repository.
git clone git@github.com:groupdocs-viewer/GroupDocs.Viewer-for-Node.js-via-Java.git
-
Navigate to the
ExamplesFoldercd ./GroupDocs.Viewer-for-Node.js-via-Java/Examples -
Install Package: Run
npm installto install@groupdocs/groupdocs.viewerand related dependencies. We typically keep the package aligned with the latest release. If you need a different version, updatepackage.jsonaccordingly.Alternatively, download the
tgzpackage from the official GroupDocs Releases page, copy it into theExamplesdirectory, and install it manually:npm install ./groupdocs.viewer-*.tgzNote for Windows / Visual Studio 2026: this project uses
node-gyp@12+(viaoverrides) to build the native Java bridge. If installation fails because files are locked, close the IDE and retry, or runnpm run rebuild:java. If the Viewer JAR undernode_modules/@groupdocs/groupdocs.viewer/libis only a few hundred bytes (download failed), placegroupdocs-viewer-nodejs-*.jarinto that folder and runnpm run postinstall. -
Configure License (Optional): To unlock the full feature set without evaluation limitations, place your
.licfile into theExamples/licensefolder. The examples apply it automatically. You can also get a temporary license to evaluate all features. -
Run the Examples: To run the full set of examples, execute:
npm start
You can also run individual example scripts with Node.js. Rendered output files are saved to the
Examples/outputfolder.
Explore detailed guides, API references, and additional samples in the GroupDocs.Viewer for Node.js via Java documentation.
We also offer GroupDocs.Viewer for other platforms:
Product Page | Docs | Demos | API Reference | Blog | Search | Free Support | Temporary License