🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@groupdocs/groupdocs.viewer

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@groupdocs/groupdocs.viewer

Powerful, high-performance and cross-platform library that allows you to build desktop and web file viewer applications.

npmnpm
Version
24.5.0
Version published
Weekly downloads
83
207.41%
Maintainers
4
Weekly downloads
 
Created
Source

GroupDocs.Viewer for Node.js via Java is a high-performance and cross-platform library that allows you to build desktop and web file viewer applications. It supports over 170 document types from popular categories such as Microsoft Office, OpenOffice, AutoCAD, Photoshop, Visio, images, metafiles, programming, archives, messages, PDF & more.

Node.js Viewer API Features

  • Display document content in any web-browser.
  • View document pages separately.
  • Rotate, reorder pages or add watermarks.
  • Customizable resource management options for CSS, fonts & images.
  • Render all pages of a document as a single PDF.
  • Boost document loading speed with configurable caching.
  • Extract document text along with words' coordinates.
  • Extract basic information about source documents such as file type, pages count and so on.
  • Auto-detect document type.
  • Replace missing font or use custom fonts for rendering.

Supported File Formats

View documents in the most popular file formats (DOCX, XLSX, PPTX, PDF, DWG, PSD, HTML, ZIP, and more) by rendering them as HTML, PDF, PNG, and JPEG files.

Getting Started with GroupDocs.Viewer for Node.js via Java

Installation

From the command line:

npm install @groupdocs/groupdocs.viewer

View DOCX As Responsive HTML using Node.js

const viewer = new groupdocs.viewer.Viewer("sample.docx")
const viewOptions = groupdocs.viewer.HtmlViewOptions.forEmbeddedResources("output-responsive.html")
viewOptions.setRenderResponsive(true)
viewer.view(viewOptions)

View DOCX As Protected PDF via Node.js

const viewer = new groupdocs.viewer.Viewer("sample.docx");
const viewOptions = new groupdocs.viewer.PdfViewOptions("output-protect.pdf");
const permissions = groupdocs.viewer.Permissions;
const security = new groupdocs.viewer.Security();

security.setDocumentOpenPassword("o123");
security.setPermissionsPassword("p123");
security.setPermissions(permissions.ALLOW_ALL ^ permissions.DENY_PRINTING);

viewOptions.setSecurity(security);
viewer.view(viewOptions);

Home | Product Page | Documentation | Blog | API Reference | Code Samples | Free Support | Temporary License

Keywords

view

FAQs

Package last updated on 21 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts