Muhammad Rizwan October 18, 20180 Comments

Introduction of GroupDocs.Viewer Cloud SDK for Node.js

Introduction of GroupDocs.Viewer Cloud SDK for Node.js

October 18, 2018

In accordance with our plan to release GroupDocs.Viewer Cloud SDKs for different platforms, we are pleased to announce GroupDocs.Viewer Cloud SDK for Node.js. This SDK supports all features introduced in GroupDocs.Viewer Cloud API. For Node.js developer’s ease, numerous API test cases provided in this SDK to understand the GroupDocs.Viewer Cloud API working and implementation of its features.

GroupDocs.Viewer Cloud is REST API which supports a variety of document formats like PDF, Words, Spreadsheet, Presentation, Images, CAD and many more. It allows to render supported documents in HTML or image for the whole document, page by page or custom range of pages. It also provides some exciting features like watermarking , document transformation (Rotate, Reorder) and font resources. Please click here for further details.

GroupDocs.Viewer Cloud SDK for Node.js – Introduction

GroupDocs.Viewer Cloud SDK for Node.js is introduced for its Node.js user. It is a wrapper around REST APIs, that allows you to work with GroupDocs.Viewer Cloud REST APIs in Node.js platform quickly and easily, gaining all benefits of strong types and IDE highlights. The distribution is available at GitHub.

GroupDocs.Viewer Cloud SDK for Node.js – Examples

GroupDocs.Viewer Cloud SDK for Node.js Examples are also available to guide developers to get familiar with SDK and its usage to invoke resources and operations using the GroupDocs.Viewer Cloud REST API. Please see the SDK examples of following categories.

Installation

You can install  Node.js module for communicating with the GroupDocs.Viewer Cloud API. A package of GroupDocs_Viewer_Cloud is available at npmjs.com. You can install it with:

npm install groupdocs-viewer-cloud

Data

In order to render any supported files, you first need to upload them to the GroupDocs cloud storage or 3rd party cloud storage to use GroupDocs.Viewer Cloud SDK for Node.js.

Getting Started

Once you are done with installation of package and dependencies in your project, You can easily call the API in your Node.js code to consume the API features. Here is the sample code to demonstrate the working of GroupDocs.Vewer Cloud API using Node.js SDK. Please follow the installation procedure and then run the following JavaScript code:

// load the module
var GroupDocs = require('groupdocs-viewer-cloud');

// get your appSid and appKey at https://dashboard.groupdocs.cloud (free registration is required).
var appSid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";
var appKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

// construct ViewerApi
var viewerApi = GroupDocs.ViewerApi.fromKeys(appSid, appKey);

// retrieve supported file-formats
viewerApi.getSupportedFileFormats()
    .then(function (response) {
        console.log("Supported file-formats:")
        response.formats.forEach(function (format) {
            console.log(format.fileFormat + " (" + format.extension + ")");
        });
    })
    .catch(function (error) {
        console.log("Error: " + error.message)
    });

GroupDocs.Viewer Cloud Resources

Following are the links to some useful resources you may need to accomplish your tasks.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with the GroupDocs Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by GroupDocs Cloud.

Posted inGroupDocs.Viewer Cloud Product FamilyTags: , , ,
 

Related Articles