Package
@cantoo/pdf-lib
Create and modify PDF files with JavaScript
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 430.2k
- - over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 4
- Direct, from package.json
- Last release
- 9 days ago
- v2.11.1
- GitHub stars
- 353
- 76 forks
- Open issues / PRs
- 13 / 5
- Contributors
- -
- Commits, last 52 weeks
- 72
No weekly download data in the snapshot.
430,236 downloads last week, 1,873,723 in the last month. No 52-week series has been fetched yet.
- Releases, last 12 months
- 22120 in total
- Latest version
- 2.11.1, 15 Sept 20269 days ago
- First published
- 12 Mar 2021
- Last push to GitHub
- 11 Sept 202614 days before the snapshot
- Repository archived
- No
- Open issues
- 13
- Open pull requests
- 5
- Commits, last 52 weeks
- 72
- Dependents on npm
- 43
Major versions
- v2 first release 2.0.0, 20 May 2024
- v1 first release 1.16.1, 12 Mar 2021
Recent releases
| Version | Published |
|---|---|
| 2.11.1 | 15 Sept 2026 |
| 2.11.0 | 11 Sept 2026 |
| 2.9.2 | 7 Sept 2026 |
| 2.9.1 | 18 Aug 2026 |
| 2.9.0 | 18 Aug 2026 |
| 2.8.4 | 16 Aug 2026 |
| 2.8.3 | 14 Aug 2026 |
| 2.8.2 | 12 Aug 2026 |
| 2.8.1 | 30 Jul 2026 |
| 2.8.0 | 30 Jul 2026 |
| 2.7.4 | 16 Jul 2026 |
| 2.7.3 | 14 Jul 2026 |
| 2.7.2 | 12 Jul 2026 |
| 2.7.1 | 27 May 2026 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 25.1 MB
- Dependencies (4)
tslibculorifflatenode-html-better-parser- Peer dependencies (1)
html-entities
npm install @cantoo/pdf-libCDN
jsDelivr: 64.7k requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/@cantoo/pdf-lib@2.11.1/ - unpkg
https://unpkg.com/@cantoo/pdf-lib@2.11.1/ - esm.sh
https://esm.sh/@cantoo/pdf-lib@2.11.1
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| pdf-lib | 9.8m | - | 4 years ago | ESM + CommonJS | - |
| @pdfme/pdf-lib | 163.4k | - | 9 days ago | ESM only | - |
| pdf-lib-incremental-save | 5.9k | - | 2 years ago | ESM + CommonJS | - |
Indexability: Indexed.