Skip to content

Commit 6563641

Browse files
committed
Release Aspose.Cells Cloud SDK 20.4
1 parent e097e42 commit 6563641

File tree

7 files changed

+337
-101
lines changed

7 files changed

+337
-101
lines changed

README.md

Lines changed: 85 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,70 @@
1-
# Aspose.Cells Cloud SDK for NodeJS
1+
Node.js Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Excel® file generation, manipulation, conversion & processing features into your own Node.js applications.
22

3-
- API version: 3.0
4-
- SDK version: 20.2
3+
# Process Excel® Files in the Cloud with Node.js
54

6-
This repository contains Aspose.Cells Cloud SDK for NodeJS 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.
5+
[Aspose.Cells Cloud SDK for Node.js](https://products.aspose.cloud/cells/nodejs) allows developers to create, edit, process & convert Excel spreadsheets in the Cloud. The Excel Cloud SDK gets its functionality from Aspose.Cells Cloud API, allowing your Node.js apps to work with all Excel file formats and features including worksheet & cell management, conditional formatting, auto-filters, auto-shapes, charts, OleObjects, page breaks, ListObjects, Pivot Tables, charts and much more.
76

7+
## Excel File Processing Features
88

9+
- Create Excel files from scratch using the API.
10+
- Load, process & convert spreadsheets via Cloud SDK.
11+
- Add, update or delete worksheet, charts, pictures, shapes, hyperlinks & validations.
12+
- Add or remove cells area for conditional formatting from Excel worksheets.
13+
- Insert or delete, horizontal or vertical page breaks.
14+
- Add ListObject or convert ListObjects to a range of cells.
15+
- Summarize data with Pivot Tables & charts.
16+
- Apply custom criteria to list filters of various types.
17+
- Get, update, show or hide chart legend & titles.
18+
- Manipulate page setup, header & footer.
19+
- Create, update, fetch or delete document properties.
20+
- Fetch the required shape from worksheet.
21+
- Leverage the Power of Pivot Tables & ranges.
922

10-
# Key Features
23+
## Features & Enhancements in Version 20.4
1124

12-
- Conversion between various document-related formats (20+ formats supported), including PDF<->Excel conversion
25+
- Support to export area or page of sheet to JPEG.
26+
- Support to add background for workbook.
27+
- Enhancement for splitting workbook.
28+
- Enhancement for create workbook.
1329

14-
- Splitting Excel documents
1530

16-
- Accessing Excel document metadata and statistics
1731

18-
- Find and replace
32+
## Read & Write Spreadsheet Formats
1933

20-
- Watermarks and protection
34+
**Microsoft Excel:** XLS, XLSX, XLSB, XLSM, XLT, XLTX, XLTM
35+
**OpenOffice:** ODS
36+
**SpreadsheetML:** XML
37+
**Text:** CSV, TSV, TXT (TabDelimited)
38+
**Web:** HTML, MHTML
39+
**PDF**
2140

22-
- Full read & write access to Cells Object Model, including workbook, worksheet, cell, shapes, tables, list object ,ole Object,headers/footers and many others
41+
## Save Spreadsheet As
2342

24-
43+
DIF, HTML, MHTML,PNG,JPG, TIFF, XPS, SVG, MD (Markdown), ODS ,xlsx,xls,xlsb, PDF,XML,TXT,CSV
2544

26-
See [API Reference](https://apireference.aspose.cloud/cells/) for full API specification.
45+
## Read File Formats
2746

47+
SXC, FODS
2848

49+
## Storage API Support
2950

30-
# Storage API support
31-
32-
#### Since version 19.9 SDK includes support of storage operations for better user experience and unification, so now there's no need to use 2 different SDKs!
51+
Since version 19.9, SDK includes support of storage operations for better user experience and unification, so now there's no need to use 2 different SDKs!
3352

3453
It gives you an ability to:
3554

36-
- Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default)
37-
- Create, copy, move and delete folders
38-
- Copy and move files and folders accross separate storages in scope of a single operation
39-
- Check if certain file, folder or storage exists
40-
41-
# Licensing
42-
43-
All Aspose.Cells Cloud SDKs are licensed under [MIT License](https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/blob/master/LICENSE).
44-
45-
46-
47-
# How to use the SDK?
48-
49-
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](https://www.npmjs.com/package/asposecellscloud) (recommended). For more details, please visit our [documentation website](https://docs.aspose.cloud/display/cellscloud/Available+SDKs).
50-
51-
52-
53-
### Prerequisites
54-
55-
To use Aspose.Cells Cloud SDK you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
56-
57-
58-
59-
### Installation
55+
- Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default).
56+
- Create, copy, move and delete folders.
57+
- Copy and move files and folders across separate storages in scope of a single operation.
58+
- Check if certain file, folder or storage exists.
6059

61-
#### Install Aspose.Cells-Cloud via NPM
60+
## Getting Started with Aspose.Cells Cloud SDK for Node.js
6261

63-
From the command line:
62+
Firstly, create an account at [Aspose for Cloud](https://dashboard.aspose.cloud/#/apps) to get your application information and free quota to use the API. Now execute `npm install asposecellscloud --save` from the command line to install Aspose.Cells Cloud SDK for Node.js via NPM.
6463

65-
```
66-
npm install asposecellscloud --save
67-
```
68-
69-
70-
71-
### Sample usage
72-
73-
64+
The complete source code is available at [GitHub Repository](https://github.com/aspose-cells-cloud/aspose-cells-cloud-node).
7465

75-
```
66+
## Convert Excel to PDF via Node.js
67+
```js
7668
var fs = require('fs');
7769
var path = require('path');
7870
var assert = require('assert');
@@ -102,23 +94,52 @@ describe('cellsWorkbookPutConvertWorkbook', function() {
10294
});
10395
```
10496

105-
# Tests
97+
## Hide Excel Columns via Node.js
98+
99+
```js
100+
const { CellsApi, Cells_PostHideWorksheetColumnsRequest } = require("asposecellscloud");
101+
102+
AppSid = ""
103+
AppKey = ""
104+
cellsApi = new CellsApi(AppSid, AppKey);
105+
filename = "Book1.xlsx"
106106

107-
[Tests](https://github.com/aspose-cells-cloud/aspose-cells-cloud-php/tree/master/test/Api) contain various examples of using the SDK.
107+
var req = new Cells_PostHideWorksheetColumnsRequest();
108+
req.name = filename;
109+
req.sheetName = "Sheet1";
110+
req.startColumn = 1;
111+
req.totalColumns = 2;
112+
req.folder = "";
108113

114+
return cellsApi.cellsPostHideWorksheetColumns(req)
115+
.then((result) => {
116+
console.log(result)
117+
});
118+
```
109119

120+
## Merge Worksheets in the Cloud via Node.js
110121

111-
# Contact Us
122+
```js
123+
const { CellsApi, Cells_PostWorksheetMergeRequest } = require("asposecellscloud");
112124

113-
Your feedback is very important to us. Please feel free to contact via
125+
AppSid = ""
126+
AppKey = ""
127+
cellsApi = new CellsApi(AppSid, AppKey);
128+
filename = "Book1.xlsx"
114129

115-
- [**Free Support Forum**](https://forum.aspose.cloud/c/cells)
116-
- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
130+
var req = new Cells_PostWorksheetMergeRequest();
131+
req.name = filename;
132+
req.sheetName = "Sheet1";
133+
req.startRow = 1;
134+
req.startColumn = 1;
135+
req.totalRows = 4;
136+
req.totalColumns = 4;
137+
req.folder = "";
117138

118-
# Resources
139+
return cellsApi.cellsPostWorksheetMerge(req)
140+
.then((result) => {
141+
console.log(result)
142+
});
143+
```
119144

120-
- [**Web API reference**](https://apireference.aspose.cloud/cells/)
121-
- [**Website**](https://www.aspose.cloud)
122-
- [**Product Home**](https://products.aspose.cloud/cells)
123-
- [**Documentation**](https://docs.aspose.cloud/display/cellscloud/Home)
124-
- [**Blog**](https://blog.aspose.cloud/category/cells/)
145+
[Product Page](https://products.aspose.cloud/cells/nodejs) | [Documentation](https://docs.aspose.cloud/display/cellscloud/Home) | [Live Demo](https://products.aspose.app/cells/family) | [API Reference](https://apireference.aspose.cloud/cells/) | [Code Samples](https://github.com/aspose-cells-cloud/aspose-cells-cloud-node) | [Blog](https://blog.aspose.cloud/category/cells/) | [Free Support](https://forum.aspose.cloud/c/cells) | [Free Trial](https://dashboard.aspose.cloud/#/apps)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "asposecellscloud",
3-
"version": "20.2.0",
4-
"description": "Aspose.Cells Cloud SDK for Node.js",
3+
"version": "20.4.0",
4+
"description": "Node.js Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Excel® file generation, manipulation, conversion & processing features into your own Node.js applications.",
55
"keywords": [
66
"Aspose",
77
"Cloud",

src/api.ts

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ export class CellsApi {
4747
* @param baseUrl Base api Url.
4848
* @param debugMode A value indicating whether debug mode. In debug mode all requests and responses are logged to console.
4949
*/
50-
constructor(appSID: string, appKey: string, apiVersion?: string, baseUrl?: string, debugMode?: boolean) {
51-
this.configuration = new Configuration(appSID, appKey,apiVersion, baseUrl, debugMode);
50+
constructor(appSID: string, appKey: string, baseUrl?: string, debugMode?: boolean) {
51+
this.configuration = new Configuration(appSID, appKey, baseUrl, debugMode);
5252
}
5353

5454
/**
@@ -6038,6 +6038,11 @@ export class CellsApi {
60386038
if (requestObj.cellName === null || requestObj.cellName === undefined) {
60396039
throw new Error('Required parameter "requestObj.cellName" was null or undefined when calling cellsPostSetCellHtmlString.');
60406040
}
6041+
6042+
// verify required parameter 'requestObj.htmlString' is not null or undefined
6043+
if (requestObj.htmlString === null || requestObj.htmlString === undefined) {
6044+
throw new Error('Required parameter "requestObj.htmlString" was null or undefined when calling cellsPostSetCellHtmlString.');
6045+
}
60416046

60426047
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
60436048
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storage", requestObj.storage);
@@ -6046,6 +6051,7 @@ export class CellsApi {
60466051
qs: queryParameters,
60476052
uri: localVarPath,
60486053
json: true,
6054+
body: (requestObj.htmlString == null) ? null : ObjectSerializer.serialize(requestObj.htmlString, requestObj.htmlString.constructor.name === "Object" ? "string" : requestObj.htmlString.constructor.name),
60496055
};
60506056

60516057
const response = await invokeApiMethod(requestOptions, this.configuration);
@@ -7867,6 +7873,38 @@ export class CellsApi {
78677873
return Promise.resolve({body: result, response});
78687874
}
78697875

7876+
/**
7877+
* Set worksheet background image.
7878+
* @param requestObj contains request parameters
7879+
*/
7880+
public async cellsWorkbookDeleteWorkbookBackground(requestObj: model.CellsWorkbook_DeleteWorkbookBackgroundRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
7881+
if (requestObj === null || requestObj === undefined) {
7882+
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsWorkbookDeleteWorkbookBackground.');
7883+
}
7884+
7885+
let localVarPath = this.configuration.getApiBaseUrl() + "/cells/{name}/background"
7886+
.replace("{" + "name" + "}", String(requestObj.name));
7887+
const queryParameters: any = {};
7888+
7889+
// verify required parameter 'requestObj.name' is not null or undefined
7890+
if (requestObj.name === null || requestObj.name === undefined) {
7891+
throw new Error('Required parameter "requestObj.name" was null or undefined when calling cellsWorkbookDeleteWorkbookBackground.');
7892+
}
7893+
7894+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
7895+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storage", requestObj.storage);
7896+
const requestOptions: request.Options = {
7897+
method: "DELETE",
7898+
qs: queryParameters,
7899+
uri: localVarPath,
7900+
json: true,
7901+
};
7902+
7903+
const response = await invokeApiMethod(requestOptions, this.configuration);
7904+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
7905+
return Promise.resolve({body: result, response});
7906+
}
7907+
78707908
/**
78717909
* Clean workbook's names.
78727910
* @param requestObj contains request parameters
@@ -8443,6 +8481,7 @@ export class CellsApi {
84438481
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "horizontalResolution", requestObj.horizontalResolution);
84448482
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "verticalResolution", requestObj.verticalResolution);
84458483
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
8484+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "outFolder", requestObj.outFolder);
84468485
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storage", requestObj.storage);
84478486
const requestOptions: request.Options = {
84488487
method: "POST",
@@ -8647,6 +8686,44 @@ export class CellsApi {
86478686
return Promise.resolve({body: result, response});
86488687
}
86498688

8689+
/**
8690+
* Set workbook background image.
8691+
* @param requestObj contains request parameters
8692+
*/
8693+
public async cellsWorkbookPutWorkbookBackground(requestObj: model.CellsWorkbook_PutWorkbookBackgroundRequest): Promise<{response: http.ClientResponse, body: model.CellsCloudResponse}> {
8694+
if (requestObj === null || requestObj === undefined) {
8695+
throw new Error('Required parameter "requestObj" was null or undefined when calling cellsWorkbookPutWorkbookBackground.');
8696+
}
8697+
8698+
let localVarPath = this.configuration.getApiBaseUrl() + "/cells/{name}/background"
8699+
.replace("{" + "name" + "}", String(requestObj.name));
8700+
const queryParameters: any = {};
8701+
8702+
// verify required parameter 'requestObj.name' is not null or undefined
8703+
if (requestObj.name === null || requestObj.name === undefined) {
8704+
throw new Error('Required parameter "requestObj.name" was null or undefined when calling cellsWorkbookPutWorkbookBackground.');
8705+
}
8706+
8707+
// verify required parameter 'requestObj.png' is not null or undefined
8708+
if (requestObj.png === null || requestObj.png === undefined) {
8709+
throw new Error('Required parameter "requestObj.png" was null or undefined when calling cellsWorkbookPutWorkbookBackground.');
8710+
}
8711+
8712+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
8713+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storage", requestObj.storage);
8714+
const requestOptions: request.Options = {
8715+
method: "PUT",
8716+
qs: queryParameters,
8717+
uri: localVarPath,
8718+
json: true,
8719+
body: (requestObj.png == null) ? null : ObjectSerializer.serialize(requestObj.png, requestObj.png.constructor.name === "Object" ? "string" : requestObj.png.constructor.name),
8720+
};
8721+
8722+
const response = await invokeApiMethod(requestOptions, this.configuration);
8723+
const result = ObjectSerializer.deserialize(response.body, "CellsCloudResponse");
8724+
return Promise.resolve({body: result, response});
8725+
}
8726+
86508727
/**
86518728
* Create new workbook using deferent methods.
86528729
* @param requestObj contains request parameters
@@ -8667,6 +8744,7 @@ export class CellsApi {
86678744

86688745
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "templateFile", requestObj.templateFile);
86698746
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "dataFile", requestObj.dataFile);
8747+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "isWriteOver", requestObj.isWriteOver);
86708748
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
86718749
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storage", requestObj.storage);
86728750
const requestOptions: request.Options = {
@@ -9248,6 +9326,8 @@ export class CellsApi {
92489326
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "format", requestObj.format);
92499327
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "verticalResolution", requestObj.verticalResolution);
92509328
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "horizontalResolution", requestObj.horizontalResolution);
9329+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "area", requestObj.area);
9330+
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "pageIndex", requestObj.pageIndex);
92519331
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "folder", requestObj.folder);
92529332
localVarPath = addQueryParameterToUrl(localVarPath, queryParameters, "storage", requestObj.storage);
92539333
const requestOptions: request.Options = {

0 commit comments

Comments
 (0)