# open-pdf-sign

> Node.js wrapper for open-pdf-sign

Latest version **0.2.2** (published 2025-12-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install open-pdf-sign
pnpm add open-pdf-sign
yarn add open-pdf-sign
bun add open-pdf-sign
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; large bundle; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2025-12-05 |
| First published | 2022-12-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 31.3 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 14 |
| Author | Thomas Schreiber |
| Maintainers | superphil0, cproof |
| Keywords | pdf signature, electronic signature, digital signature, pdf, open-pdf-sign, openpdfsign |

## Links

- npm: https://www.npmjs.com/package/open-pdf-sign
- Repository: https://github.com/open-pdf-sign/open-pdf-sign-node
- Issues: https://github.com/open-pdf-sign/open-pdf-sign-node/issues
- npm.io page: https://npm.io/package/open-pdf-sign

## Dependencies (1)

- [which](https://npm.io/package/which.md) ^5.0.0

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2025-12-05
- 0.2.1 — 2025-09-19
- 0.2.0 — 2025-09-19
- 0.1.7 — 2023-10-21
- 0.1.0 — 2022-12-04
- 0.0.4 — 2022-12-03
- 0.0.3 — 2022-12-03
- 0.0.2 — 2022-12-03
- 0.0.1 — 2022-12-03

## README

# open-pdf-sign node.js wrapper

[![npm-image](https://img.shields.io/npm/v/open-pdf-sign.svg)](https://www.npmjs.com/package/open-pdf-sign)

Node.js wrapper for [open-pdf-sign CLI](https://github.com/open-pdf-sign/open-pdf-sign). This allows you to easily sign
PDF files from your node.js applications.

## Prerequisites

* nodejs
* java

## Installation

```bash
npm i open-pdf-sign --save
```

## Usage

See [demo/sample.js](demo/sample.js) file for how to use with.

You can use all command line parameters from the [open-pdf-sign Java CLI](https://github.com/open-pdf-sign/open-pdf-sign),
including visible signatures, signatures text, etc.

```javascript
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:

```typescript
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.

## Changelog

* v0.2.0 - Changed invocation - please update to use different array elements for different arguments

## License

This project is licensed under the Apache 2.0-license.

---
_Source: https://npm.io/package/open-pdf-sign · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
