Skip to content
JS
Package

pdf-lib

Create and modify PDF files with JavaScript

v1.17.1, 6 Nov 2021MITESM + CommonJSTypes: BundledPDF and documentsTypeScript tooling
$ npm install pdf-lib

Key numbers

As of 25 Sept 2026
Weekly downloads
9.8m
+473% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
4
Direct, from package.json
Last release
4 years ago
v1.17.1
GitHub stars
8.6k
918 forks
Open issues / PRs
278 / 39
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 12.7m (25 Aug 2026)Low 1.3m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

9,843,212 downloads last week, 43,842,431 in the last month. The 12-month change of +473% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
042 in total
Latest version
1.17.1, 6 Nov 20214 years ago
First published
4 Sept 2017
Last push to GitHub
17 Jul 2024799 days before the snapshot
Repository archived
No
Open issues
278
Open pull requests
39
Commits, last 52 weeks
0
Dependents on npm
1,848

Major versions

  1. v1 first release 1.0.0, 27 Jul 2019
  2. v0 first release 0.0.0, 4 Sept 2017

Recent releases

VersionPublished
1.17.16 Nov 2021
1.17.016 Oct 2021
1.16.027 Jan 2021
1.15.09 Jan 2021
1.14.130 Dec 2020
1.14.021 Dec 2020
1.13.06 Dec 2020
1.12.015 Nov 2020
1.11.29 Oct 2020
1.11.115 Sept 2020
1.11.013 Sept 2020
1.10.08 Aug 2020
1.9.026 Jun 2020
1.8.020 Jun 2020
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
18.6 MB
Dependencies (4)
pakotslib@pdf-lib/upng@pdf-lib/standard-fonts
npm install pdf-lib

CDN

jsDelivr: 13m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/pdf-lib@1.17.1/
  • unpkghttps://unpkg.com/pdf-lib@1.17.1/
  • esm.shhttps://esm.sh/pdf-lib@1.17.1
PackageWeekly downloadsGzipLast releaseModuleComparison
@pdfme/pdf-lib163.4k-9 days agoESM onlypdf-lib vs @pdfme/pdf-lib
@cantoo/pdf-lib430.2k-9 days agoESM + CommonJS-
@pdfme/common139.2k-9 days agoESM only-
@pdfme/schemas129.1k-9 days agoESM only-
@pdfme/generator118.1k-9 days agoESM only-
@embedpdf/react-pdf-viewer158.1k-8 days agoESM + CommonJS-
@embedpdf/engines385k-8 days agoESM + CommonJS-
@embedpdf/fonts-arabic372.3k-8 months agoESM + CommonJS-

Related

Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Indexed.