Quickly Get Started with the Document Viewer REST API

Easily incorporate GroupDocs.Viewer Cloud services in your application using Node.js SDK.

Start Free Trial
GroupDocs.Viewer Cloud SDK for Node.js

GroupDocs.Viewer Cloud SDK for Node.js

 
 

GroupDocs.Viewer Cloud is a true REST API that gives the complete freedom of platform & programming language whereas GroupDocs.Viewer Cloud SDK for Node.js is built as a layer on the top of GroupDocs.Viewer Cloud REST API, allowing a higher level of abstraction so that you don't need to know the REST API to use this SDK.

GroupDocs.Viewer Cloud API allows you to seamlessly enhance your application with the capability to render a number of document formats with the ability to view a specific document in HTML, image, PDF or its original format. You also get the flexibility to render the whole document, page by page or custom range of pages. GroupDocs.Viewer Cloud SDK for Node.js has been developed to help you integrate all these features in your Node.js application without any hassle.

Previous Next
 

Advanced Document Viewer REST API Features

 

 

Render documents as HTML5

 

Render documents as image

 

Rotate, reorder & watermark pages

 

Render documents as PDF

 

Render document attachments

 

Get document information

Quickly Get Started with Document Viewing REST API

Get started quickly using GroupDocs.Viewer Cloud REST API with the GroupDocs.Viewer Cloud SDK for Node.js. It facilitates the users and speeds up the development of their applications written in Node.js while taking care of a lot of low-level details of making requests and handling responses and lets the users focus on writing code specific to their particular project. 

HTML Representation of Email Attachments List

The cloud-based viewer API has the ability to list the email attachments for HTML representation. This feature of the API returns a list of attachments with a simple API call.

Get Email Attachments for HTML Representation - Node.js


//Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
var viewerApi = groupdocs_viewer_cloud_1.ViewerApi.fromKeys(appSid, appKey);
var request = new groupdocs_viewer_cloud_1.HtmlGetAttachmentsRequest("with-attachment.msg");
request.folder = "viewerdocs";
viewerApi.htmlGetAttachments(request)
    .then(function (result) {
    console.log(result);
});

Retrieve Fonts

GroupDocs.Viewer Cloud REST APIs allows you to get the installed fonts to resource from the API server. The API returns a list of installed fonts. The API also has the ability to delete the fonts cache from the API server. In this case, the API returns an empty response with '204 No Content' status to confirm the deletion. 

Delete fonts cache - Node.js


// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required)
var viewerApi = groupdocs_viewer_cloud_1.ViewerApi.fromKeys(appSid, appKey);
var fileName = "Template.docx";
var htmlOptions = new groupdocs_viewer_cloud.HtmlOptions();
htmlOptions.embedResources = true;
htmlOptions.excludeFonts = true;
var request = new groupdocs_viewer_cloud.HtmlGetPagesRequest(fileName);
request.htmlOptions = htmlOptions;
viewerApi.htmlGetPages(request)
    .then(function (result) {
    console.log(result);
});

Easy Customization Options

GroupDocs.Viewer Cloud SDK is 100% tested and out of the box running. The SDK is open source and has an MIT license. You can use it, and even customize it for absolutely free of charge.

 

Support and Learning Resources