GroupDocs.Viewer at a glance

API to render, display, convert documents, slides, diagrams, and many other document types in Node.js applications

Illustration viewer

View documents efficiently & reliably

With GroupDocs.Viewer API you can efficiently render documents of any supportable formats to HTML, JPEG, PNG, and PDF with flexible and powerful options while maintaining content and document structure integrity. GroupDocs.Viewer for Node.js works on Windows and Linux platforms.

Most popular file and document formats are supported

We support rendering over the 180 most popular file and document formats that include Word, Excel, PDF, PowerPoint, OpenDocument formats family, Archives, Raster and Vector images, e-Books, programming languages and markups, and many other file types, including encrypted files with password protection.

Customizable output

GroupDocs.Viewer allows not only to render the document, but also to control how exactly, which parts of the document should be rendered or now, how they should be rendered, and to apply different transformations to the rendered output.

Platform independence

GroupDocs.Viewer for Node.js supports the following operating systems, frameworks and package managers

Amazon
Docker
Azure
Eclipse
IntelliJ
Windows
Linux
NPM

Supported file formats

GroupDocs.Viewer for Node.js via Java supports operations with the following file formats.

Microsoft Office, OpenDocument and text formats

  • Word: DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, TXT
  • Excel: XLS, XLSX, XLSM, XLSB, XLTM, XLT, XLTM, XLTX
  • PowerPoint: PPT, PPTX, PPS, PPSX, PPSM, POT, POTM, POTX, PPTM
  • Project: MPP, MPT, MPX
  • Outlook: MSG, EML, EMLX, PST, OST
  • OneNote: ONE
  • OpenDocument: ODT, OTT, ODS, ODP, OTP, OTS, ODG
  • Fixed Page Layout: PDF, TEX, XPS, OXPS
  • e-Books: EPUB, MOBI, DjVu
  • Delimiter-Separated Values: CSV, TSV

Images, Graphics & Diagrams

  • Raster images: BMP, GIF, JPG, PNG, TIFF, WebP, DNG, DIB, Jpeg2000 family
  • Windows Icon: ICO
  • Scalable Vector Graphics: SVG, CDR, CMX, IGS, SVGZ
  • Adobe Photoshop: PSD, PSB
  • Stereo Lithography (3D Printing): STL
  • Medical Imaging: DICOM
  • Plotter Documents: PLT, HPG
  • Autodesk Design Web Formats: DWF, DWG
  • AutoCAD Drawing: DWT, IFC, STL, CF2

Other

  • Web: HTML, MHT, MHTML, XML
  • Metafile: WMF, EMF, CGM, EMZ, WMZ
  • Visio: VSD, VDX, VSS, VSSX, VSX, VST, VSTX, VTX, VSDX, VDW, VSTM, VSSM, VSDM
  • Project: MPP, MPT, MPX
  • PostScript: PS, EPS
  • Archives: ZIP, TAR, BZ2, GZ, RAR, RAR5
  • Other: VCF, VCARD, NUMBERS, NSF, OBJ
  • C/C++/C# Files: C, CC, C# , CPP, CXX, CS, H, HH, M, MM
  • Java/JavaScript Files: JAVA, JS, JSON, PROPERTIES

GroupDocs.Viewer features

Seamlessly render, display, and convert PDF and Office Documents

Feature icon

View documents in HTML

Convert document of any type into a HTML document with CSS and SVG, which can be displayed in any modern web-browser.

Feature icon

Rasterize documents

Rasterize any supportable document format to the raster image, with adjustable image format and compression quality.

Feature icon

Render and highlight programming codes

Support of all popular programming, scripting, and markup languages, with ability to parse and highlight their syntax.

Feature icon

Convert to PDF

Document of any supportable format can be easily converted and saved to the PDF with adjustable options.

Feature icon

Apply transformations

Output document can be transformed during rendering - pages can be rotated and/or rearranged, and text watermark may be placed atop of them.

Feature icon

HTML output adjustment

Output HTML documents, generated by the GroupDocs.Viewer, can be tuned very finely: it is allowed to save to the stream or file, with external or embedded resources, callbacks and so on.

Feature icon

Support of complex document structures

GroupDocs.Viewer supports not only the single documents, but also files, which internally contain a list or hierarchical structure of documents, like email messages with attachments, ZIP archives with internal files within folders, multi-page TIFF images, and so on.

Feature icon

Optimization options

GroupDocs.Viewer contains an adjustable cache subsystem, which can fasten the loading time by using the cached versions of the documents. Also a set of different options for different formats allows to exclude some unnecessary parts or aspects of documents from the rendering (fonts, hidded worksheets, email attachments) to optimize the overall performance

Feature icon

Support of password-protected documents

GroupDocs.Viewer allows to open the encrypted documents of different types: PDF, WordProcessing, Spreadsheet, Presentation, and other, by specifying a password in the loading options.

Code samples

Some use cases of typical GroupDocs.Viewer for Node.js via Java operations

Render DOCX to HTML

The HtmlViewOptions class properties allow you to control the conversion process, more on that here. For instance, you can embed all external resources in the output HTML file, minify the output file, and optimize it for printing.

JavaScript

import { Viewer, HtmlViewOptions } from '@groupdocs/groupdocs.viewer'

// Set output HTML options, one file per page
const viewOptions = HtmlViewOptions.forEmbeddedResources()

// Instantiate Viewer
const viewer = new Viewer("resume.docx")

// Render DOCX to HTML with embedded resources
viewer.view(viewOptions)
viewer.close()

Export PPTX to PDF

Create a PdfViewOptions class instance and pass it to the Viewer.view method to convert a PowerPoint PPTX file to PDF. The PdfViewOptions class properties allow you to control the conversion process. For instance, you can protect the output PDF file, reorder its pages, and specify the quality of document images. Refer to the following documentation section for details.

JavaScript

import { Viewer, PdfViewOptions } from '@groupdocs/groupdocs.viewer'

// Set output PDF options
const viewOptions = new PdfViewOptions("presentation.pdf")

// Instantiate Viewer
const viewer = new Viewer("presentation.pptx")

// Export PPTX to PDF
viewer.view(viewOptions)
viewer.close()

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English