@pdftron/pdfnet-node
TypeScript icon, indicating that this package has built-in type declarations

11.4.0 • Public • Published

@pdftron/pdfnet-node

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.

Supported platform, Node.js, and Electron versions

This package depends on unmanaged add-on binaries, and the add-on binaries are not cross-platform. At the moment we have support for

  • OS: Linux, Windows(x64), Mac
  • Node.js version: 8 - 22
  • Electron version: 30 - 30

Installation will fail if your OS, Node.js or Electron version is not supported.

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.

Usage

Here is a code snippet to demonstrate how to use this package.

const { PDFNet } = require('@pdftron/pdfnet-node');  // you may need to set up NODE_PATH environment variable to make this work.

const main = async() => {
  const doc = await PDFNet.PDFDoc.create();
  const page = await doc.pageCreate();
  doc.pagePushBack(page);
  doc.save('blank.pdf', PDFNet.SDFDoc.SaveOptions.e_linearized);
};

// add your own license key as the second parameter, e.g. in place of 'YOUR_LICENSE_KEY'.
PDFNet.runWithCleanup(main, 'YOUR_LICENSE_KEY').catch(function(error) {
  console.log('Error: ' + JSON.stringify(error));
}).then(function(){ return PDFNet.shutdown(); });

There are some code samples in the @pdftron/pdfnet-node-samples package.

To get started please see the documentation at https://www.apryse.com/documentation/nodejs/get-started/integration.

Licensing

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
11.4.02,920latest
11.3.0-beta2beta

Version History

VersionDownloads (Last 7 Days)Published
11.4.02,920
11.3.0668
11.2.0497
11.3.0-beta2
11.1.01,887
11.1.0-beta1
11.0.0967
11.0.0-beta0
10.12.116,617
10.12.0518
10.12.0-beta2
10.11.0615
10.11.0-beta1
10.10.01,640
10.10.0-beta1
10.9.0-176
10.9.014
10.9.0-2-beta1
10.9.0-1-beta0
10.9.0-beta0
10.8.0-1373
10.8.042
10.8.0-beta0
10.7.0897
10.7.0-2-beta0
10.7.0-1-beta1
10.7.0-beta1
10.6.0-50
10.6.0-5-beta1
10.6.0-4100
10.6.0-beta-40
10.6.0-beta-10
10.6.0-30
10.6.0-20
10.6.0-10
10.6.074
10.6.0-beta1
10.5.0114
10.5.0-a-beta1
10.5.0-beta1
10.4.078
10.3.1-beta0
10.3.011
10.3.0-beta0
10.4.0-beta1
10.2.01
10.2.0-beta0
10.1.12
10.1.1-beta1
10.1.0121
10.1.0-3-beta1
10.1.0-2-beta-beta0
10.1.0-1-beta0
10.1.0-beta0
10.0.028
10.0.0-beta0
9.5.0-2-beta-10
9.5.0-11
9.5.0795
9.5.0-beta1
9.4.296
9.4.2-beta.01
9.4.023
9.4.0-beta.00
9.3.0185
9.3.0-beta.00
9.2.0-113
9.2.05
9.2.0-beta.00
9.1.0-2175
9.1.0-10
9.1.01
9.1.0-beta.00
9.0.0-34
9.0.0-21
9.0.0-10
9.0.0-beta.11
9.0.00
9.0.0-beta.01
8.1.029
8.0.10
8.0.04
8.0.0-beta.21
8.0.0-beta.11
8.0.0-beta.01
7.1.1-14
7.1.11
7.1.0-31
7.1.0-20
7.1.0-10
7.1.00
7.0.40
7.0.31
7.0.1-11
7.0.11
7.0.1-beta.01

Package Sidebar

Install

npm i @pdftron/pdfnet-node

Weekly Downloads

29,626

Version

11.4.0

License

Commercial

Unpacked Size

247 kB

Total Files

4

Last publish

Collaborators

  • pdftron-dev