open-pdf-sign
v0.1.7
Published
Node.js wrapper for open-pdf-sign
Downloads
78
Readme
open-pdf-sign node.js wrapper
Node.js wrapper for open-pdf-sign CLI. This allows you to easily sign PDF files from your node.js applications.
Prerequisites
- nodejs
- java
Installation
npm i open-pdf-sign --save
Usage
See demo/sample.js file for how to use with.
You can use all command line parameters from the open-pdf-sign Java CLI, including visible signatures, signatures text, etc.
const OpenPdfSign = require("open-pdf-sign")
await OpenPdfSign.sign("-i demo.pdf", "-o demo.signed.pdf","-k key.pem","-c cert.pem")
You can also use open-pdf-sign in your TypeScript files:
import { OpenPdfSign } from "open-pdf-sign"
await OpenPdfSign.sign("-i demo.pdf", "-o demo.signed.pdf","-k key.pem","-c cert.pem")
Development
After installing all dependencies and downloading the latest version
of the open-pdf-sign CLI application by running npm i
,
run npm run build
to build the typescript files.
License
This project is licensed under the Apache 2.0-license.