asposefontnodejs 24.8.0 → 24.10.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/AsposeFontForNode.wasm +0 -0
- package/AsposeFontforNode.cjs +2 -2
- package/AsposeFontforNode.mjs +2 -2
- package/LICENSE.md +14 -14
- package/README.md +100 -100
- package/package.json +53 -53
package/LICENSE.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# EULA
|
|
2
|
-
|
|
3
|
-
The End User License Agreement ("EULA") contains the terms and conditions that
|
|
4
|
-
govern Your use of Aspose's products enclosed or otherwise accompanied herewith
|
|
5
|
-
(individually and collectively, the "PRODUCT") (as linked to below) and imposes
|
|
6
|
-
material limitations on Your License. You should read the EULA carefully. BY
|
|
7
|
-
INSTALLING, DOWNLOADING, COPYING OR OTHERWISE USING THE PRODUCT, YOU AGREE TO BE
|
|
8
|
-
BOUND BY THE TERMS OF THE ASPOSE EULA.
|
|
9
|
-
|
|
10
|
-
You may obtain a copy of the Aspose EULA at: https://about.aspose.com/legal/eula
|
|
11
|
-
|
|
12
|
-
## 3rd party Licenses
|
|
13
|
-
|
|
14
|
-
Please follow to ./license/3rdparty.pdf to get full info about 3rd party Licenses.
|
|
1
|
+
# EULA
|
|
2
|
+
|
|
3
|
+
The End User License Agreement ("EULA") contains the terms and conditions that
|
|
4
|
+
govern Your use of Aspose's products enclosed or otherwise accompanied herewith
|
|
5
|
+
(individually and collectively, the "PRODUCT") (as linked to below) and imposes
|
|
6
|
+
material limitations on Your License. You should read the EULA carefully. BY
|
|
7
|
+
INSTALLING, DOWNLOADING, COPYING OR OTHERWISE USING THE PRODUCT, YOU AGREE TO BE
|
|
8
|
+
BOUND BY THE TERMS OF THE ASPOSE EULA.
|
|
9
|
+
|
|
10
|
+
You may obtain a copy of the Aspose EULA at: https://about.aspose.com/legal/eula
|
|
11
|
+
|
|
12
|
+
## 3rd party Licenses
|
|
13
|
+
|
|
14
|
+
Please follow to ./license/3rdparty.pdf to get full info about 3rd party Licenses.
|
package/README.md
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
# Node.js API to Manipulate Font Files
|
|
2
|
-
|
|
3
|
-
Add font manipulation and conversion features to your Node.js applications.
|
|
4
|
-
|
|
5
|
-
[Aspose.Font for Node.js via C++](https://products.aspose.com/font/nodejs-cpp/) allows convert ttf, otf, cff, type1 font files to ttf and svg formats, read and write truetype font metadata information.
|
|
6
|
-
|
|
7
|
-
<p align="center">
|
|
8
|
-
<a title="Download complete Aspose.Font for Node.js via C++ code" href="https://releases.aspose.com/font/nodejs-cpp/new-releases/">
|
|
9
|
-
<img src="https://raw.github.com/AsposeExamples/java-examples-dashboard/master/images/downloadZip-Button-Large.png" />
|
|
10
|
-
</a>
|
|
11
|
-
</p>
|
|
12
|
-
|
|
13
|
-
## PDF Processing
|
|
14
|
-
|
|
15
|
-
- **Extract text** from PDF pages or search for a particular text segment using regular expressions.
|
|
16
|
-
- **Add or extract** images to & from PDF documents.
|
|
17
|
-
- **Concatenate** or **split** PDF files.
|
|
18
|
-
- **Linearization** of PDF documents for web optimization.
|
|
19
|
-
- **Convert** PDF documents to Office, web, and image formats with the highest visual fidelity.
|
|
20
|
-
- **Manipulate** PDF files to manage bookmarks, hyperlinks, watermarks, attachments & annotations.
|
|
21
|
-
- **Encrypt** or **decrypt** PDF documents and set document privileges or modify passwords.
|
|
22
|
-
- **Digitally sign PDF** documents or remove signatures. Also, verify if the PDF is signed and the signature is valid.
|
|
23
|
-
|
|
24
|
-
## Read & Write PDF & Other Formats
|
|
25
|
-
|
|
26
|
-
**Fixed Layout:** PDF, PDF/A
|
|
27
|
-
|
|
28
|
-
## Save PDF Documents As
|
|
29
|
-
|
|
30
|
-
- **Microsoft Office:** DOC, DOCX, XLS, XLSX, PPTX
|
|
31
|
-
- **Images:** JPEG, PNG, BMP, TIFF
|
|
32
|
-
- **Others:** EPUB, DICOM, SVG, SVG(ZIP), GRAYSCALE PDF, PDF/A, TEX, TXT
|
|
33
|
-
|
|
34
|
-
## Platform Independence
|
|
35
|
-
|
|
36
|
-
Aspose.PDF for Node.js via C++ is a WebAssembly-based library that can be used to create applications in Node.js environment.
|
|
37
|
-
The library was written in C++ and does not require additional runtime environments.
|
|
38
|
-
|
|
39
|
-
## Getting Started with Aspose.PDF for Node.js via C++
|
|
40
|
-
|
|
41
|
-
Are you ready to give Aspose.PDF for Node.js via C++ a try?
|
|
42
|
-
|
|
43
|
-
- Execute `npm install asposepdfnodejs` in Terminal in Visual Studio Code or in another console.
|
|
44
|
-
|
|
45
|
-
## Setting up
|
|
46
|
-
|
|
47
|
-
- You need arial.ttf and times.ttf fonts to perform basic operations
|
|
48
|
-
|
|
49
|
-
## Extract Text From Whole PDF
|
|
50
|
-
|
|
51
|
-
**CommonJS**:
|
|
52
|
-
```js
|
|
53
|
-
const AsposePdf = require('asposepdfnodejs');
|
|
54
|
-
const pdf_file = 'Aspose.pdf';
|
|
55
|
-
AsposePdf().then(AsposePdfModule => {
|
|
56
|
-
/*Extract text from a PDF-file*/
|
|
57
|
-
const json = AsposePdfModule.AsposePdfExtractText(pdf_file);
|
|
58
|
-
console.log("AsposePdfExtractText => %O", json.errorCode == 0 ? json.extractText : json.errorText);
|
|
59
|
-
});
|
|
60
|
-
```
|
|
61
|
-
**ECMAScript/ES6**:
|
|
62
|
-
```js
|
|
63
|
-
import AsposePdf from 'asposepdfnodejs';
|
|
64
|
-
const AsposePdfModule = await AsposePdf();
|
|
65
|
-
const pdf_file = 'Aspose.pdf';
|
|
66
|
-
/*Extract text from a PDF-file*/
|
|
67
|
-
const json = AsposePdfModule.AsposePdfExtractText(pdf_file);
|
|
68
|
-
console.log("AsposePdfExtractText => %O", json.errorCode == 0 ? json.extractText : json.errorText);
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## Save PDF as Office Formats
|
|
72
|
-
|
|
73
|
-
One of the most popular features of Aspose.PDF for Node.js via C++ is to convert PDF documents to other formats without needing to understand the underlying structure of the resultant format.
|
|
74
|
-
|
|
75
|
-
Give the following snippet a try with your samples:
|
|
76
|
-
|
|
77
|
-
**CommonJS**:
|
|
78
|
-
|
|
79
|
-
```js
|
|
80
|
-
const AsposePdf = require('asposepdfnodejs');
|
|
81
|
-
const pdf_file = 'Aspose.pdf';
|
|
82
|
-
AsposePdf().then(AsposePdfModule => {
|
|
83
|
-
/*Convert a PDF-file to DocX and save the "ResultPDFtoDocX.docx"*/
|
|
84
|
-
const json = AsposePdfModule.AsposePdfToDocX(pdf_file, "ResultPDFtoDocX.docx");
|
|
85
|
-
console.log("AsposePdfToDocX => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);
|
|
86
|
-
});
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
**ECMAScript/ES6**:
|
|
90
|
-
|
|
91
|
-
```js
|
|
92
|
-
import AsposePdf from 'asposepdfnodejs';
|
|
93
|
-
const AsposePdfModule = await AsposePdf();
|
|
94
|
-
const pdf_file = 'Aspose.pdf';
|
|
95
|
-
/*Convert a PDF-file to DocX and save the "ResultPDFtoDocX.docx"*/
|
|
96
|
-
const json = AsposePdfModule.AsposePdfToDocX(pdf_file, "ResultPDFtoDocX.docx");
|
|
97
|
-
console.log("AsposePdfToDocX => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
[Home](https://www.aspose.com/) | [Product Page](https://products.aspose.com/pdf/nodejs-cpp/) | [Docs](https://docs.aspose.com/pdf/nodejs-cpp/) | [Demos](https://products.aspose.app/pdf/family) | [API Reference](https://reference.aspose.com/pdf/nodejs-cpp/) | [Examples](https://github.com/aspose-pdf/aspose-pdf-js) | [Blog](https://blog.aspose.com/category/pdf/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/pdf) | [Temporary License](https://purchase.aspose.com/temporary-license)
|
|
1
|
+
# Node.js API to Manipulate Font Files
|
|
2
|
+
|
|
3
|
+
Add font manipulation and conversion features to your Node.js applications.
|
|
4
|
+
|
|
5
|
+
[Aspose.Font for Node.js via C++](https://products.aspose.com/font/nodejs-cpp/) allows convert ttf, otf, cff, type1 font files to ttf and svg formats, read and write truetype font metadata information.
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<a title="Download complete Aspose.Font for Node.js via C++ code" href="https://releases.aspose.com/font/nodejs-cpp/new-releases/">
|
|
9
|
+
<img src="https://raw.github.com/AsposeExamples/java-examples-dashboard/master/images/downloadZip-Button-Large.png" />
|
|
10
|
+
</a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
## PDF Processing
|
|
14
|
+
|
|
15
|
+
- **Extract text** from PDF pages or search for a particular text segment using regular expressions.
|
|
16
|
+
- **Add or extract** images to & from PDF documents.
|
|
17
|
+
- **Concatenate** or **split** PDF files.
|
|
18
|
+
- **Linearization** of PDF documents for web optimization.
|
|
19
|
+
- **Convert** PDF documents to Office, web, and image formats with the highest visual fidelity.
|
|
20
|
+
- **Manipulate** PDF files to manage bookmarks, hyperlinks, watermarks, attachments & annotations.
|
|
21
|
+
- **Encrypt** or **decrypt** PDF documents and set document privileges or modify passwords.
|
|
22
|
+
- **Digitally sign PDF** documents or remove signatures. Also, verify if the PDF is signed and the signature is valid.
|
|
23
|
+
|
|
24
|
+
## Read & Write PDF & Other Formats
|
|
25
|
+
|
|
26
|
+
**Fixed Layout:** PDF, PDF/A
|
|
27
|
+
|
|
28
|
+
## Save PDF Documents As
|
|
29
|
+
|
|
30
|
+
- **Microsoft Office:** DOC, DOCX, XLS, XLSX, PPTX
|
|
31
|
+
- **Images:** JPEG, PNG, BMP, TIFF
|
|
32
|
+
- **Others:** EPUB, DICOM, SVG, SVG(ZIP), GRAYSCALE PDF, PDF/A, TEX, TXT
|
|
33
|
+
|
|
34
|
+
## Platform Independence
|
|
35
|
+
|
|
36
|
+
Aspose.PDF for Node.js via C++ is a WebAssembly-based library that can be used to create applications in Node.js environment.
|
|
37
|
+
The library was written in C++ and does not require additional runtime environments.
|
|
38
|
+
|
|
39
|
+
## Getting Started with Aspose.PDF for Node.js via C++
|
|
40
|
+
|
|
41
|
+
Are you ready to give Aspose.PDF for Node.js via C++ a try?
|
|
42
|
+
|
|
43
|
+
- Execute `npm install asposepdfnodejs` in Terminal in Visual Studio Code or in another console.
|
|
44
|
+
|
|
45
|
+
## Setting up
|
|
46
|
+
|
|
47
|
+
- You need arial.ttf and times.ttf fonts to perform basic operations
|
|
48
|
+
|
|
49
|
+
## Extract Text From Whole PDF
|
|
50
|
+
|
|
51
|
+
**CommonJS**:
|
|
52
|
+
```js
|
|
53
|
+
const AsposePdf = require('asposepdfnodejs');
|
|
54
|
+
const pdf_file = 'Aspose.pdf';
|
|
55
|
+
AsposePdf().then(AsposePdfModule => {
|
|
56
|
+
/*Extract text from a PDF-file*/
|
|
57
|
+
const json = AsposePdfModule.AsposePdfExtractText(pdf_file);
|
|
58
|
+
console.log("AsposePdfExtractText => %O", json.errorCode == 0 ? json.extractText : json.errorText);
|
|
59
|
+
});
|
|
60
|
+
```
|
|
61
|
+
**ECMAScript/ES6**:
|
|
62
|
+
```js
|
|
63
|
+
import AsposePdf from 'asposepdfnodejs';
|
|
64
|
+
const AsposePdfModule = await AsposePdf();
|
|
65
|
+
const pdf_file = 'Aspose.pdf';
|
|
66
|
+
/*Extract text from a PDF-file*/
|
|
67
|
+
const json = AsposePdfModule.AsposePdfExtractText(pdf_file);
|
|
68
|
+
console.log("AsposePdfExtractText => %O", json.errorCode == 0 ? json.extractText : json.errorText);
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Save PDF as Office Formats
|
|
72
|
+
|
|
73
|
+
One of the most popular features of Aspose.PDF for Node.js via C++ is to convert PDF documents to other formats without needing to understand the underlying structure of the resultant format.
|
|
74
|
+
|
|
75
|
+
Give the following snippet a try with your samples:
|
|
76
|
+
|
|
77
|
+
**CommonJS**:
|
|
78
|
+
|
|
79
|
+
```js
|
|
80
|
+
const AsposePdf = require('asposepdfnodejs');
|
|
81
|
+
const pdf_file = 'Aspose.pdf';
|
|
82
|
+
AsposePdf().then(AsposePdfModule => {
|
|
83
|
+
/*Convert a PDF-file to DocX and save the "ResultPDFtoDocX.docx"*/
|
|
84
|
+
const json = AsposePdfModule.AsposePdfToDocX(pdf_file, "ResultPDFtoDocX.docx");
|
|
85
|
+
console.log("AsposePdfToDocX => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);
|
|
86
|
+
});
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**ECMAScript/ES6**:
|
|
90
|
+
|
|
91
|
+
```js
|
|
92
|
+
import AsposePdf from 'asposepdfnodejs';
|
|
93
|
+
const AsposePdfModule = await AsposePdf();
|
|
94
|
+
const pdf_file = 'Aspose.pdf';
|
|
95
|
+
/*Convert a PDF-file to DocX and save the "ResultPDFtoDocX.docx"*/
|
|
96
|
+
const json = AsposePdfModule.AsposePdfToDocX(pdf_file, "ResultPDFtoDocX.docx");
|
|
97
|
+
console.log("AsposePdfToDocX => %O", json.errorCode == 0 ? json.fileNameResult : json.errorText);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
[Home](https://www.aspose.com/) | [Product Page](https://products.aspose.com/pdf/nodejs-cpp/) | [Docs](https://docs.aspose.com/pdf/nodejs-cpp/) | [Demos](https://products.aspose.app/pdf/family) | [API Reference](https://reference.aspose.com/pdf/nodejs-cpp/) | [Examples](https://github.com/aspose-pdf/aspose-pdf-js) | [Blog](https://blog.aspose.com/category/pdf/) | [Search](https://search.aspose.com/) | [Free Support](https://forum.aspose.com/c/pdf) | [Temporary License](https://purchase.aspose.com/temporary-license)
|
package/package.json
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "asposefontnodejs",
|
|
3
|
-
"description": "Aspose.Font for Node.js via C++",
|
|
4
|
-
"version": "24.
|
|
5
|
-
"homepage": "https://products.aspose.com/font/nodejs-cpp/",
|
|
6
|
-
"readmeFilename": "README.md",
|
|
7
|
-
"main": "./AsposeFontforNode.cjs",
|
|
8
|
-
"module": "./AsposeFontforNode.mjs",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./AsposeFontforNode.mjs",
|
|
12
|
-
"require": "./AsposeFontforNode.cjs"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"AsposeFontforNode.cjs",
|
|
17
|
-
"AsposeFontforNode.mjs",
|
|
18
|
-
"AsposeFontforNode.wasm",
|
|
19
|
-
"license/*",
|
|
20
|
-
"fonts/Lora-Regular.ttf",
|
|
21
|
-
"fonts/acade1.afm",
|
|
22
|
-
"fonts/Montserrat-Regular.eot",
|
|
23
|
-
"fonts/12380_C0_0.cff",
|
|
24
|
-
"LICENSE.md",
|
|
25
|
-
"README.md",
|
|
26
|
-
"example.cjs",
|
|
27
|
-
"example.mjs"
|
|
28
|
-
],
|
|
29
|
-
"scripts": {
|
|
30
|
-
"example:cjs": "node ./example.cjs",
|
|
31
|
-
"example:esm": "node ./example.mjs"
|
|
32
|
-
},
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">=16.4.0"
|
|
35
|
-
},
|
|
36
|
-
"author": {
|
|
37
|
-
"name": "Aspose.Font for C++ Team",
|
|
38
|
-
"url": "https://products.aspose.com/font/"
|
|
39
|
-
},
|
|
40
|
-
"license": "See Licence in LICENCE.md",
|
|
41
|
-
"keywords": [
|
|
42
|
-
"Aspose",
|
|
43
|
-
"Aspose.Font",
|
|
44
|
-
"TTF",
|
|
45
|
-
"WOFF",
|
|
46
|
-
"WOFF2",
|
|
47
|
-
"Font",
|
|
48
|
-
"C++",
|
|
49
|
-
"WebAssembly"
|
|
50
|
-
],
|
|
51
|
-
"dependencies": {
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "asposefontnodejs",
|
|
3
|
+
"description": "Aspose.Font for Node.js via C++",
|
|
4
|
+
"version": "24.10.0",
|
|
5
|
+
"homepage": "https://products.aspose.com/font/nodejs-cpp/",
|
|
6
|
+
"readmeFilename": "README.md",
|
|
7
|
+
"main": "./AsposeFontforNode.cjs",
|
|
8
|
+
"module": "./AsposeFontforNode.mjs",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./AsposeFontforNode.mjs",
|
|
12
|
+
"require": "./AsposeFontforNode.cjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"AsposeFontforNode.cjs",
|
|
17
|
+
"AsposeFontforNode.mjs",
|
|
18
|
+
"AsposeFontforNode.wasm",
|
|
19
|
+
"license/*",
|
|
20
|
+
"fonts/Lora-Regular.ttf",
|
|
21
|
+
"fonts/acade1.afm",
|
|
22
|
+
"fonts/Montserrat-Regular.eot",
|
|
23
|
+
"fonts/12380_C0_0.cff",
|
|
24
|
+
"LICENSE.md",
|
|
25
|
+
"README.md",
|
|
26
|
+
"example.cjs",
|
|
27
|
+
"example.mjs"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"example:cjs": "node ./example.cjs",
|
|
31
|
+
"example:esm": "node ./example.mjs"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=16.4.0"
|
|
35
|
+
},
|
|
36
|
+
"author": {
|
|
37
|
+
"name": "Aspose.Font for C++ Team",
|
|
38
|
+
"url": "https://products.aspose.com/font/"
|
|
39
|
+
},
|
|
40
|
+
"license": "See Licence in LICENCE.md",
|
|
41
|
+
"keywords": [
|
|
42
|
+
"Aspose",
|
|
43
|
+
"Aspose.Font",
|
|
44
|
+
"TTF",
|
|
45
|
+
"WOFF",
|
|
46
|
+
"WOFF2",
|
|
47
|
+
"Font",
|
|
48
|
+
"C++",
|
|
49
|
+
"WebAssembly"
|
|
50
|
+
],
|
|
51
|
+
"dependencies": {
|
|
52
|
+
}
|
|
53
|
+
}
|