No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.vscode
TestData
src
test
.gitignore
.npmignore
LICENSE
README.md
package-lock.json
package.json
tsconfig.json

README.md

Aspose.Cells Cloud SDK for Node.js npm

This repository contains Aspose.Cells Cloud SDK for Node.js source code. This SDK allows you to work with Aspose.Cells Cloud REST APIs in your nodejs applications quickly and easily, with zero initial cost.

Key Features

  • Convert spreadsheets to different formats
  • Create spreadsheets from templates, XML or smart markers
  • Split spreadsheets to single worksheet spreadsheets
  • Manipulate rows, columns, cells & data
  • Set complex formulae
  • Extract charts, pictures, shapes & other objects as images
  • Export worksheets to images

See API Reference for full API specification.

How to use the SDK?

The complete source code is available in this repository folder. You can either directly use it in your project via source code or get nmpjs distribution (recommended). For more details, please visit our documentation website.

Prerequisites

To use Aspose Cells for Cloud SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.

Required version of Node.js is 4.8.7 or higher.

Installation

Install Aspose.Cells-Cloud via NPM

From the command line:

npm install asposecellscloud --save

Sample usage

The examples below show how your application have to initiate and convert "xlsx file to "pdf" using asposecellscloud library:

const {CellsSaveAsApi, CellsSaveAs_PostDocumentSaveAsRequest, PdfSaveOptions} = require("asposecellscloud");

const AppSid = "your clientId";
const AppKey = "your clientSecret";

const cellsSaveAsApi = new CellsSaveAsApi(AppSid, AppKey);
const filename = "Book1.xlsx";
var req = new CellsSaveAs_PostDocumentSaveAsRequest();
req.name = filename;
var saveOptions = new PdfSaveOptions();
saveOptions.onePagePerSheet = true;
saveOptions.saveFormat = "pdf"
req.saveOptions = saveOptions;
req.newfilename = "newbook.pdf";
req.isAutoFitRows = true;
req.isAutoFitColumns = true;
req.folder = "Temp";
        
cellsSaveAsApi.cellsSaveAsPostDocumentSaveAs(req)
    .then((result) => {    
        console.log(result.body.code);    
    }).catch(function(err) {
        console.log(err);
    });

Contact Us

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