@pdftron/pdfnet-node 10.7.0 → 10.8.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/package.json +28 -27
- package/readme.md +38 -38
package/package.json
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@pdftron/pdfnet-node",
|
|
3
|
-
"version": "10.
|
|
4
|
-
"main": "./lib/pdfnet.js",
|
|
5
|
-
"types": "./lib/types.d.ts",
|
|
6
|
-
"binary": {
|
|
7
|
-
"module_name": "pdfnet-addon",
|
|
8
|
-
"module_path": "./",
|
|
9
|
-
"remote_path": "./downloads/PDFNetNode/{version}",
|
|
10
|
-
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz",
|
|
11
|
-
"host": "https://www.pdftron.com"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"install": "node-pre-gyp install --fallback-to-build=false"
|
|
15
|
-
},
|
|
16
|
-
"engines" : { "node" : ">=8 <=
|
|
17
|
-
"description": "This is the Apryse SDK packaged as a Node.js module.",
|
|
18
|
-
"author": "Apryse Software Inc.",
|
|
19
|
-
"license": "Commercial",
|
|
20
|
-
"homepage": "https://www.pdftron.com",
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"underscore": "^1.13.6",
|
|
23
|
-
"xhr2": "^0.2.1",
|
|
24
|
-
"@mapbox/node-pre-gyp": "^1.0.10"
|
|
25
|
-
},
|
|
26
|
-
"keywords": ["PDF", "Office", "SDK"]
|
|
27
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@pdftron/pdfnet-node",
|
|
3
|
+
"version": "10.8.0",
|
|
4
|
+
"main": "./lib/pdfnet.js",
|
|
5
|
+
"types": "./lib/types.d.ts",
|
|
6
|
+
"binary": {
|
|
7
|
+
"module_name": "pdfnet-addon",
|
|
8
|
+
"module_path": "./",
|
|
9
|
+
"remote_path": "./downloads/PDFNetNode/{version}",
|
|
10
|
+
"package_name": "{module_name}-v{version}-{node_abi}-{platform}-{arch}.tar.gz",
|
|
11
|
+
"host": "https://www.pdftron.com"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"install": "node-pre-gyp install --fallback-to-build=false"
|
|
15
|
+
},
|
|
16
|
+
"engines" : { "node" : ">=8 <=20" },
|
|
17
|
+
"description": "This is the Apryse SDK packaged as a Node.js module.",
|
|
18
|
+
"author": "Apryse Software Inc.",
|
|
19
|
+
"license": "Commercial",
|
|
20
|
+
"homepage": "https://www.pdftron.com",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"underscore": "^1.13.6",
|
|
23
|
+
"xhr2": "^0.2.1",
|
|
24
|
+
"@mapbox/node-pre-gyp": "^1.0.10"
|
|
25
|
+
},
|
|
26
|
+
"keywords": ["PDF", "Office", "SDK"]
|
|
27
|
+
}
|
|
28
|
+
|
package/readme.md
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
## @pdftron/pdfnet-node
|
|
2
|
-
|
|
3
|
-
This package leverages the full power of Apryse's native SDK for maximal performance and accuracy. In order to maintain consistency across platforms the Javascript API is used in the same manner as the PDFNet API available in Apryse's Web platform. Since access to the filesystem is included in Node.js/Electron some additional APIs requiring filesystem access have also been included.
|
|
4
|
-
|
|
5
|
-
#### Supported platform, Node.js, and Electron versions
|
|
6
|
-
This package depends on unmanaged add-on binaries, and the add-on binaries are not cross-platform. At the moment we have support for
|
|
7
|
-
* **OS**: Linux (excluding Alpine), Windows(x64), Mac
|
|
8
|
-
* **Node.js version**: 8 - 20
|
|
9
|
-
* **Electron version**: 6 - 22
|
|
10
|
-
|
|
11
|
-
Installation will fail if your OS, Node.js or Electron version is not supported.
|
|
12
|
-
|
|
13
|
-
To install for Electron, *runtime* and *target* options are needed. For example, For Electron 6, we need to run *npm i @pdftron/pdfnet-node --runtime=electron --target=6.0.0*. Note that we need to use *6.0.0* for all Electron 6 versions.
|
|
14
|
-
|
|
15
|
-
#### Usage
|
|
16
|
-
Here is a code snippet to demonstrate how to use this package.
|
|
17
|
-
```javascript
|
|
18
|
-
const { PDFNet } = require('@pdftron/pdfnet-node'); // you may need to set up NODE_PATH environment variable to make this work.
|
|
19
|
-
|
|
20
|
-
const main = async() => {
|
|
21
|
-
const doc = await PDFNet.PDFDoc.create();
|
|
22
|
-
const page = await doc.pageCreate();
|
|
23
|
-
doc.pagePushBack(page);
|
|
24
|
-
doc.save('blank.pdf', PDFNet.SDFDoc.SaveOptions.e_linearized);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
// add your own license key as the second parameter, e.g. in place of 'YOUR_LICENSE_KEY'.
|
|
28
|
-
PDFNet.runWithCleanup(main, 'YOUR_LICENSE_KEY').catch(function(error) {
|
|
29
|
-
console.log('Error: ' + JSON.stringify(error));
|
|
30
|
-
}).then(function(){ return PDFNet.shutdown(); });
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
There are some code samples in the [@pdftron/pdfnet-node-samples](https://www.npmjs.com/package/@pdftron/pdfnet-node-samples) package.
|
|
34
|
-
|
|
35
|
-
To get started please see the documentation at https://www.apryse.com/documentation/nodejs/get-started/integration.
|
|
36
|
-
|
|
37
|
-
#### Licensing
|
|
38
|
-
Please go to https://www.apryse.com/pws/get-key to obtain a demo license or https://wwww.apryse.com/form/contact-sales to obtain a production key. For further information, please visit https://www.apryse.com/licensing.
|
|
1
|
+
## @pdftron/pdfnet-node
|
|
2
|
+
|
|
3
|
+
This package leverages the full power of Apryse's native SDK for maximal performance and accuracy. In order to maintain consistency across platforms the Javascript API is used in the same manner as the PDFNet API available in Apryse's Web platform. Since access to the filesystem is included in Node.js/Electron some additional APIs requiring filesystem access have also been included.
|
|
4
|
+
|
|
5
|
+
#### Supported platform, Node.js, and Electron versions
|
|
6
|
+
This package depends on unmanaged add-on binaries, and the add-on binaries are not cross-platform. At the moment we have support for
|
|
7
|
+
* **OS**: Linux (excluding Alpine), Windows(x64), Mac
|
|
8
|
+
* **Node.js version**: 8 - 20
|
|
9
|
+
* **Electron version**: 6 - 22
|
|
10
|
+
|
|
11
|
+
Installation will fail if your OS, Node.js or Electron version is not supported.
|
|
12
|
+
|
|
13
|
+
To install for Electron, *runtime* and *target* options are needed. For example, For Electron 6, we need to run *npm i @pdftron/pdfnet-node --runtime=electron --target=6.0.0*. Note that we need to use *6.0.0* for all Electron 6 versions.
|
|
14
|
+
|
|
15
|
+
#### Usage
|
|
16
|
+
Here is a code snippet to demonstrate how to use this package.
|
|
17
|
+
```javascript
|
|
18
|
+
const { PDFNet } = require('@pdftron/pdfnet-node'); // you may need to set up NODE_PATH environment variable to make this work.
|
|
19
|
+
|
|
20
|
+
const main = async() => {
|
|
21
|
+
const doc = await PDFNet.PDFDoc.create();
|
|
22
|
+
const page = await doc.pageCreate();
|
|
23
|
+
doc.pagePushBack(page);
|
|
24
|
+
doc.save('blank.pdf', PDFNet.SDFDoc.SaveOptions.e_linearized);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// add your own license key as the second parameter, e.g. in place of 'YOUR_LICENSE_KEY'.
|
|
28
|
+
PDFNet.runWithCleanup(main, 'YOUR_LICENSE_KEY').catch(function(error) {
|
|
29
|
+
console.log('Error: ' + JSON.stringify(error));
|
|
30
|
+
}).then(function(){ return PDFNet.shutdown(); });
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
There are some code samples in the [@pdftron/pdfnet-node-samples](https://www.npmjs.com/package/@pdftron/pdfnet-node-samples) package.
|
|
34
|
+
|
|
35
|
+
To get started please see the documentation at https://www.apryse.com/documentation/nodejs/get-started/integration.
|
|
36
|
+
|
|
37
|
+
#### Licensing
|
|
38
|
+
Please go to https://www.apryse.com/pws/get-key to obtain a demo license or https://wwww.apryse.com/form/contact-sales to obtain a production key. For further information, please visit https://www.apryse.com/licensing.
|