# GroupDocs.Viewer for Node.js via Java - Code Examples [Product Page](https://products.groupdocs.com/viewer/nodejs-java/) | [Docs](https://docs.groupdocs.com/viewer/nodejs-java/) | [Demos](https://products.groupdocs.app/viewer/family) | [API Reference](https://references.groupdocs.com/viewer/) | [Blog](https://blog.groupdocs.com/category/viewer/) | [Search](https://search.groupdocs.com/) | [Free Support](https://forum.groupdocs.com/c/viewer) | [Temporary License](https://purchase.groupdocs.com/temporary-license) [GroupDocs.Viewer for Node.js via Java](https://products.groupdocs.com/viewer/nodejs-java/) is a document rendering API that lets you easily render the most popular file formats, including DOCX, XLSX, PPTX, PDF, CAD drawings, and many more. ## Features - **Wide Format Support**: Supports rendering of popular formats like Microsoft Office, PDF, HTML, and more. - **Multiple Output Formats**: Render documents to HTML, PDF, PNG, JPEG, and other formats. - **Format Detection**: Automatically detects the format of input files. ## Supported File Formats GroupDocs.Viewer for Node.js via Java supports a wide range of file formats, including Word, Excel, PowerPoint, PDF, OpenDocument, Image, Email, and many others. See the [full list of supported formats](http://docs.groupdocs.com/viewer/nodejs-java/supported-file-formats/) for details. ## Get Started 1. **Set Up Environment**: Ensure that [Node.js 20 LTS](https://nodejs.org/) is installed on your system. 2. **Get the Code**: Clone or download this repository. ```bash git clone git@github.com:groupdocs-viewer/GroupDocs.Viewer-for-Node.js-via-Java.git ``` 3. **Navigate to the `Examples` Folder** ```bash cd ./GroupDocs.Viewer-for-Node.js-via-Java/Examples ``` 4. **Install Package**: To install the package, run `npm install`. We typically keep the package up to date with the latest version. If you need to use a different package version, you can update the package.json file accordingly. Alternatively, you can download the `tgz` file from the official [GroupDocs Releases](https://releases.groupdocs.com/viewer/nodejs-java/#direct-download) website. To install the package manually, copy the tgz file to the `Examples` directory and run the following command: ```bash npm install ./groupdocs.viewer-*.tgz ``` 5. **Configure License (Optional)**: If you have a license file, you can set the license path in the `run_all_examples.js` file. By default, GroupDocs.Viewer for Node.js via Java checks for the `GROUPDOCS_LICENSE_PATH` environment variable or looks for files with the `.lic` extension in the project's root directory. You can also [get a temporary license](https://purchase.groupdocs.com/temporary-license) to test all the features. 6. **Run the Examples**: To run all the examples, execute the following command: ```bash npm start ``` You can also run individual examples by navigating to the folder containing the example script and running it. Output files are placed in the same folder as the script file. ## More Resources Find additional details and examples in the [GroupDocs.Viewer for Node.js via Java documentation](https://docs.groupdocs.com/viewer/nodejs-java/). We also offer **GroupDocs.Viewer** packages for other platforms: * [**GroupDocs.Viewer for .NET**](https://products.groupdocs.com/viewer/net/) * [**GroupDocs.Viewer for Java**](https://products.groupdocs.com/viewer/java/) * [**GroupDocs.Viewer for Python via .NET**](https://products.groupdocs.com/viewer/python-net/) --- [Product Page](https://products.groupdocs.com/viewer/nodejs-java/) | [Docs](https://docs.groupdocs.com/viewer/nodejs-java/) | [Demos](https://products.groupdocs.app/viewer/family) | [API Reference](https://references.groupdocs.com/viewer/) | [Blog](https://blog.groupdocs.com/category/viewer/) | [Search](https://search.groupdocs.com/) | [Free Support](https://forum.groupdocs.com/c/viewer) | [Temporary License](https://purchase.groupdocs.com/temporary-license)