aspose.cells 24.6.0 → 24.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -43
- package/download-aspose.cells.js +22 -0
- package/package.json +17 -10
- package/thirdpartylicenses.Aspose.Cells for Node.js via C++.pdf +0 -0
- package/index.js +0 -2
- package/lib/JavaClassBridge.jar +0 -0
- package/lib/aspose-cells-24.6.jar +0 -0
- package/lib/aspose.cells.js +0 -3983
- package/lib/bcpkix-jdk15on-1.68.jar +0 -0
- package/lib/bcprov-jdk15on-1.68.jar +0 -0
- package/thirdpartylicenses.Aspose.Cells for Node.js via Java.pdf +0 -0
package/README.md
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
Aspose.Cells for Node.js via
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
- Create
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
- Populate worksheets through Smart Markers.
|
|
12
|
-
- Manipulate & refresh Pivot Tables via API.
|
|
13
|
-
- Convert worksheets to PDF, XPS & SVG formats.
|
|
14
|
-
- Inter-convert files to popular Excel formats.
|
|
1
|
+
Aspose.Cells for Node.js via C++ is a powerful and robust library designed for high-performance spreadsheet manipulation and management within Node.js applications. It offers a comprehensive set of features that enable developers to create, edit, convert, and render Excel files programmatically. Supporting all major Excel formats, including XLS, XLSX, XLSM, and more, it ensures compatibility and flexibility. This makes Aspose.Cells for Node.js via C++ a versatile tool for a wide range of data processing and management tasks, providing developers with a complete and efficient solution for integrating comprehensive Excel functionality into their Node.js applications.
|
|
2
|
+
|
|
3
|
+
## Key features
|
|
4
|
+
- **File Creation and Editing:** Create new spreadsheets from scratch or edit existing ones with ease. This includes adding or modifying data, formatting cells, managing worksheets, and more.
|
|
5
|
+
- **Data Processing:** Perform complex data manipulations such as sorting, filtering, and validation. The library also supports advanced formulas and functions to facilitate data analysis and calculations.
|
|
6
|
+
- **File Conversion**: Convert Excel files to various formats such as PDF, HTML, ODS, and image formats like PNG and JPEG. This feature is useful for sharing and distributing spreadsheet data in different formats.
|
|
7
|
+
- **Chart and Graphics**: Create and customize a wide range of charts and graphics to visually represent data. The library supports bar charts, line charts, pie charts, and many more, along with customization options for design and layout.
|
|
8
|
+
- **Rendering and Printing**: Render Excel sheets to high-fidelity images and PDFs, ensuring that the visual representation is accurate. The library also provides options for printing spreadsheets with precise control over page layout and formatting.
|
|
9
|
+
- **Advanced Protection and Security**: Protect spreadsheets with passwords, encrypt files, and manage access permissions to ensure data security and integrity.
|
|
10
|
+
- **Performance and Scalability**: Designed to handle large datasets and complex spreadsheets efficiently, Aspose.Cells for Node.js via C++ ensures high performance and scalability for enterprise-level applications.
|
|
15
11
|
|
|
16
12
|
## Read & Write Excel Files
|
|
17
13
|
**Microsoft Excel:** XLS, XLSX, XLSB, XLTX, XLTM, XLSM, XML
|
|
@@ -24,62 +20,67 @@ Aspose.Cells for Node.js via Java is a scalable and feature-rich API to create,
|
|
|
24
20
|
**Images:** JPEG, PNG, BMP, SVG, TIFF, GIF, EMF
|
|
25
21
|
**Text:** CSV, Tab-Delimited, JSON, SQL, XML
|
|
26
22
|
|
|
27
|
-
##
|
|
23
|
+
## Support multiple operating systems and CPU architectures, including:
|
|
24
|
+
- **Windows x64**
|
|
25
|
+
- **Linux x64**
|
|
26
|
+
- **macOS x64 & arm64**
|
|
27
|
+
|
|
28
|
+
## Getting Started with Aspose.Cells for Node.js via C++
|
|
28
29
|
### Installation
|
|
29
30
|
|
|
30
31
|
From the command line:
|
|
31
32
|
|
|
32
33
|
npm install aspose.cells --save
|
|
33
34
|
|
|
34
|
-
### Create Excel XLSX File from Scratch
|
|
35
|
+
### Create Excel XLSX File from Scratch
|
|
35
36
|
``` js
|
|
36
|
-
|
|
37
|
-
aspose.cells = require("aspose.cells");
|
|
37
|
+
const AsposeCells = require("aspose.cells");
|
|
38
38
|
|
|
39
|
-
var workbook = new
|
|
40
|
-
workbook.getWorksheets().get(0).getCells().get("A1").putValue("
|
|
41
|
-
workbook.save("
|
|
39
|
+
var workbook = new AsposeCells.Workbook(AsposeCells.FileFormatType.Xlsx);
|
|
40
|
+
workbook.getWorksheets().get(0).getCells().get("A1").putValue("Hello World");
|
|
41
|
+
workbook.save("hello-world.xlsx");
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
### Convert Excel XLSX File to PDF
|
|
44
|
+
### Convert Excel XLSX File to PDF
|
|
45
45
|
``` js
|
|
46
|
-
|
|
47
|
-
aspose.cells = require("aspose.cells");
|
|
46
|
+
const { Workbook } = require("aspose.cells");
|
|
48
47
|
|
|
49
|
-
var workbook = new
|
|
50
|
-
|
|
51
|
-
saveOptions.setOnePagePerSheet(true);
|
|
52
|
-
workbook.save("example.pdf", saveOptions);
|
|
48
|
+
var workbook = new Workbook("example.xlsx");
|
|
49
|
+
workbook.save("pdf-example.pdf");
|
|
53
50
|
```
|
|
54
51
|
|
|
55
|
-
### Format Excel Cells
|
|
52
|
+
### Format Excel Cells
|
|
56
53
|
```js
|
|
57
|
-
|
|
58
|
-
aspose.cells = require("aspose.cells");
|
|
54
|
+
const { Workbook, Color } = require("aspose.cells");
|
|
59
55
|
|
|
60
|
-
var
|
|
61
|
-
var style =
|
|
56
|
+
var workbook = new Workbook();
|
|
57
|
+
var style = workbook.createStyle();
|
|
62
58
|
style.getFont().setName("Times New Roman");
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
{
|
|
66
|
-
|
|
59
|
+
var blue = new Color(0, 0, 0xff);
|
|
60
|
+
style.getFont().setColor(blue);
|
|
61
|
+
for (var i = 0; i < 10; i++) {
|
|
62
|
+
var cell = workbook.getWorksheets().get(0).getCells().get(0, i);
|
|
63
|
+
cell.putValue(i);
|
|
64
|
+
cell.setStyle(style);
|
|
67
65
|
}
|
|
66
|
+
workbook.save("style-example.xlsx");
|
|
68
67
|
```
|
|
69
68
|
|
|
70
|
-
### Add Picture to Excel Worksheet
|
|
69
|
+
### Add Picture to Excel Worksheet
|
|
71
70
|
```js
|
|
72
|
-
|
|
73
|
-
aspose.cells = require("aspose.cells");
|
|
71
|
+
const { Workbook, SaveFormat } = require("aspose.cells");
|
|
74
72
|
|
|
75
|
-
var workbook = new
|
|
73
|
+
var workbook = new Workbook();
|
|
76
74
|
var sheetIndex = workbook.getWorksheets().add();
|
|
77
75
|
var worksheet = workbook.getWorksheets().get(sheetIndex);
|
|
78
76
|
|
|
79
77
|
// adding a picture at "F6" cell
|
|
80
78
|
worksheet.getPictures().add(5, 5, "image.gif");
|
|
81
79
|
|
|
82
|
-
workbook.save("
|
|
80
|
+
workbook.save("picture-example.xls", SaveFormat.Excel97To2003);
|
|
83
81
|
```
|
|
84
82
|
|
|
85
|
-
|
|
83
|
+
# Note
|
|
84
|
+
Starting from v24.7.0, Aspose.Cells for Node.js via Java has been migrated to [aspose.cells.java](https://www.npmjs.com/package/aspose.cells.java).
|
|
85
|
+
|
|
86
|
+
[Product Page](https://products.aspose.com/cells/nodejs-cpp) | [Product Documentation](https://docs.aspose.com/cells/nodejs-cpp/) | [Blog](https://blog.aspose.com/categories/aspose.cells-product-family/) |[API Reference](https://reference.aspose.com/cells/nodejs-cpp) | [Free Support](https://forum.aspose.com/c/cells) | [Temporary License](https://purchase.aspose.com/temporary-license)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { spawnSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
const args = ['install', '--fallback-to-build=false'];
|
|
6
|
+
if (process.platform == "linux") {
|
|
7
|
+
let regex = /^(\d+)\./;
|
|
8
|
+
let match = process.versions.openssl.match(regex);
|
|
9
|
+
let major = match ? match[1] : null;
|
|
10
|
+
if (major == '1') {
|
|
11
|
+
args.push('--toolset=-legacy');
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
let { status } = spawnSync('node-pre-gyp', args, {
|
|
16
|
+
shell: true,
|
|
17
|
+
stdio: 'inherit'
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
if (status) {
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aspose.cells",
|
|
3
|
-
"version": "24.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "
|
|
3
|
+
"version": "24.7.0",
|
|
4
|
+
"description": "Aspose.Cells for Node.js via C++ is a high-performance and powerful library for manipulating and converting Excel (XLS, XLSX, XLSB), ODS, CSV, and HTML files, offering a comprehensive set of features for creating, editing, converting, and rendering spreadsheets within Node.js applications.",
|
|
5
|
+
"main": "./lib/aspose.cells.js",
|
|
6
|
+
"types": "./lib/types.d.ts",
|
|
7
|
+
"binary": {
|
|
8
|
+
"module_name": "aspose.cells.nodejs",
|
|
9
|
+
"module_path": "./lib",
|
|
10
|
+
"remote_path": "./aspose-cells/aspose.cells-for-nodejs/releases/download/v{version}",
|
|
11
|
+
"package_name": "{module_name}-v{version}-{platform}{toolset}-{arch}.tar.gz",
|
|
12
|
+
"host": "https://github.com/"
|
|
13
|
+
},
|
|
6
14
|
"scripts": {
|
|
7
|
-
"
|
|
15
|
+
"install": "node download-aspose.cells.js"
|
|
8
16
|
},
|
|
17
|
+
"engines" : { "node" : ">=12" },
|
|
9
18
|
"keywords": [
|
|
10
19
|
"Excel",
|
|
11
20
|
"XLS",
|
|
@@ -32,11 +41,9 @@
|
|
|
32
41
|
"XML"
|
|
33
42
|
],
|
|
34
43
|
"author": "Aspose",
|
|
35
|
-
"license": "
|
|
44
|
+
"license": "Commercial",
|
|
45
|
+
"homepage": "https://www.aspose.com",
|
|
36
46
|
"dependencies": {
|
|
37
|
-
"
|
|
38
|
-
},
|
|
39
|
-
"directories": {
|
|
40
|
-
"lib": "lib"
|
|
47
|
+
"@mapbox/node-pre-gyp": "^1.0.11"
|
|
41
48
|
}
|
|
42
|
-
}
|
|
49
|
+
}
|
|
Binary file
|
package/index.js
DELETED
package/lib/JavaClassBridge.jar
DELETED
|
Binary file
|
|
Binary file
|