New Release of Aspose.PDF Cloud SDK for Node.js – A Complete Solution to Manipulate PDF Portable Document Format in Node.js Using Powerful Aspose.PDF Cloud APIs

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.PDF Cloud

Aspose.PDF CloudAspose.PDF Cloud’s platform independent document manipulation API is a true REST API that can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, Node.js and many more. You can use it with any platform — web, desktop, mobile, and cloud.

With Aspose.PDF Cloud you can work with all aspects of PDF (portable document format) file: read, write, convert, split, merge and many more options to manipulate PDF documents. Aspose.PDF Cloud is a complete solution for performing any manipulation you can wish to perform on PDF files in the cloud. Learn More

What’s new in the latest release

This is a major revamp release for Aspose.PDF Cloud SDK for Node.js. It covers all the Aspose.PDF Cloud APIs. This SDK provides a complete solution to manipulate PDF (Portable Document Format) in Node.js using powerful Aspose.PDF Cloud APIs, so you can perform any operation on PDF files in the cloud seamlessly.

Source Code Repository

Complete source code of this release of Aspose.PDF Cloud SDK for Node.js is freely available on your favorite GitHub and Codeplex repositories.

Release Package

Setup

Aspose.PDF Cloud SDK for Node.js is also available as a released package in the npm (package manager for javascript) . You can bypass GitHub source code repository and depend directly on the released package by installing from npm:

Aspose.PDF Cloud SDK for Node.js – npm installation


npm i asposepdfcloud

Data

In order to manipulate any files, you first need to upload them to the Aspose cloud storage or 3rd party cloud storage using Aspose.Storage Cloud SDK for Node.js.

Quick SDK Tutorial


var fs = require('fs');
var assert = require('assert');
var StorageApi =require("asposestoragecloud")
var PDFApi = require("asposepdfcloud");

var AppSID = 'XXX'; //sepcify App SID
var AppKey = 'XXX'; //sepcify App Key
var config = {'appSid':AppSID,'apiKey':AppKey};
var data_path = '../data/';

try {
//Instantiate Aspose.Storage API SDK
var storageApi = new StorageApi(config);

//Instantiate Aspose.PDF API SDK
var pdfApi = new PDFApi(config);

//set input file name
var filename = "Sample";
var name = filename + ".pdf";
var format = "DOC";

//upload file to aspose cloud storage
storageApi.PutCreate(name, null, null, file= data_path + name , function(responseMessage) {
	assert.equal(responseMessage.status, 'OK');
	//invoke Aspose.PDF Cloud SDK API to get pdf documemt in required format  
	pdfApi.GetDocumentWithFormat(name, format, null, null, null, function(responseMessage) {
			assert.equal(responseMessage.status, 'OK');		
			//download output document from response
			var outfilename = filename + '.' + format;
			var writeStream = fs.createWriteStream('c:/temp/' + outfilename);
			writeStream.write(responseMessage.body);
			});
	});

}catch (e) {
  console.log("exception in example");
  console.log(e);
}

Aspose.PDF Cloud API Documentation

Aspose.PDF Cloud Documentation is available to guide developers to get familiar with the specific resources and operations within the Aspose.PDF Cloud REST API.

Aspose.PDF Cloud SDK for Node.js Examples

Aspose.PDF 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 Aspose.PDF Cloud REST API. Please see the SDK examples of following categories.

Start a Free Trial Today

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