# pdfjs-dist

> Generic build of Mozilla's PDF.js library.

Latest version **6.3.289** (published 2026-08-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install pdfjs-dist
pnpm add pdfjs-dist
yarn add pdfjs-dist
bun add pdfjs-dist
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo; extremely popular.

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

## Facts

| | |
|---|---|
| Version | 6.3.289 |
| Published | 2026-08-29 |
| First published | 2014-09-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=22.13.0 \|\| >=24 |
| Dependencies | 0 |
| Unpacked size | 33.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 53899 |
| Maintainers | yurydelendik, pdfjsbot, brendandahl, calixteman, pdfjs-release-automation |
| Keywords | Mozilla, pdf, pdf.js |

## Links

- npm: https://www.npmjs.com/package/pdfjs-dist
- Repository: https://github.com/mozilla/pdf.js
- Homepage: https://mozilla.github.io/pdf.js/
- Issues: https://github.com/mozilla/pdf.js/issues
- npm.io page: https://npm.io/package/pdfjs-dist

## 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

- 6.3.289 (latest) — 2026-08-29
- 6.2.108 — 2026-07-28
- 6.1.200 — 2026-06-27
- 6.0.227 — 2026-05-30
- 5.7.284 — 2026-04-27
- 5.6.205 — 2026-03-29
- 5.5.207 — 2026-03-01
- 5.4.624 — 2026-02-01
- 5.4.530 — 2025-12-28
- 5.4.449 — 2025-11-29
- 5.4.394 — 2025-11-02
- 5.4.296 — 2025-10-05
- 5.4.149 — 2025-08-30
- 5.4.54 — 2025-07-27
- 5.3.93 — 2025-07-06
- … 1550 more at https://npm.io/package/pdfjs-dist/versions

## README

# PDF.js

PDF.js is a Portable Document Format (PDF) library that is built with HTML5.
Our goal is to create a general-purpose, web standards-based platform for
parsing and rendering PDFs.

This is a pre-built version of the PDF.js source code. It is automatically
generated by the build scripts.

For usage with older browsers/environments, without native support for the
latest JavaScript features, please see the `legacy/` folder.
Please see [this wiki page](https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support) for information about supported browsers/environments.

See https://github.com/mozilla/pdf.js for learning and contributing.

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