Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asposepdfcloud

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asposepdfcloud

Aspose.Pdf Cloud SDK for Node.js

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
decreased by-31.49%
Maintainers
1
Weekly downloads
 
Created
Source

Aspose.Pdf Cloud SDK for Node.js

This repository contains Aspose.Pdf Cloud SDK for Node.js source code. This SDK allows you to work with Aspose.Pdf Cloud REST APIs in your Node.js applications quickly and easily.

How to use the SDK?

The complete source code is available in this repository folder. For more details, please visit our documentation website.

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);
}

##Contact Us Your feedback is very important to us. Please feel free to contact us using our Support Forums.

Keywords

FAQs

Package last updated on 27 Sep 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc