# PDF libraries

Make, read and show PDF files. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [PDF.js](https://elestia.ai/opensource/pdf/pdfjs/index.md) | 8.7 | 5.3 | 8.6 | 9.3 | 7.8 | 8.9 | 7.6 | Web apps that must display, search or extract text from PDFs with consistent rendering across browsers. |
| 2 | [PDFKit](https://elestia.ai/opensource/pdf/pdfkit/index.md) | 7.6 | 4.8 | 7.7 | 7.7 | 6.8 | 6.9 | 7.1 | Node developers who want exact, code-driven control over PDFs they make from scratch, such as invoices, reports and accessible tagged documents. |
| 3 | [React-PDF viewer](https://elestia.ai/opensource/pdf/react-pdf/index.md) | 7.4 | 3.9 | 7.5 | 7.1 | 6.0 | 5.8 | 7.0 | React 19 apps that need to show PDF pages, with text selection and links, inside their own UI. |
| 4 | [unpdf](https://elestia.ai/opensource/pdf/unpdf/index.md) | 7.4 | 4.4 | 7.5 | 7.2 | 5.6 | 4.4 | 7.7 | Teams that need to pull text, images or metadata out of PDFs in serverless, edge or AI document pipelines, without native dependencies. |
| 5 | [React-pdf renderer](https://elestia.ai/opensource/pdf/react-pdf-renderer/index.md) | 7.3 | 4.1 | 7.3 | 6.8 | 6.2 | 6.1 | 6.4 | React and Next.js teams that want to write invoices, reports and other structured PDFs as JSX, on the server or in the browser, without headless Chrome. |
| 6 | [pdfmake](https://elestia.ai/opensource/pdf/pdfmake/index.md) | 7.2 | 4.5 | 7.3 | 7.0 | 6.1 | 6.6 | 5.8 | Teams that want table-heavy reports or invoices from a declarative JSON layout, without hand-positioning content or running a headless browser. |
| 7 | [pdfme](https://elestia.ai/opensource/pdf/pdfme/index.md) | 6.9 | 4.2 | 7.1 | 7.1 | 3.6 | 4.2 | 7.2 | Apps that generate fixed-layout documents like invoices, labels and certificates from templates that users or designers edit in a visual designer. |
| 8 | [jsPDF](https://elestia.ai/opensource/pdf/jspdf/index.md) | 6.4 | 5.3 | 6.2 | 5.5 | 7.3 | 6.1 | 5.7 | Teams that need quick, simple PDFs drawn in the browser, or a PDF capture of on-screen HTML, without a server. |
| 9 | [pdf-lib](https://elestia.ai/opensource/pdf/pdf-lib/index.md) | 4.9 | 4.8 | 6.7 | 2.0 | 6.2 | 5.5 | 5.0 | Existing codebases that already use it for merging, splitting, stamping or form-filling PDFs and cannot migrate yet. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| PDF.js | 226M | ×11 | 54k | 3.2k | Nov 2026 | 1 |
| PDFKit | 68M | ×14 | 11k | 167 | Nov 2026 | 0 |
| React-PDF viewer | 39M | ×5.1 | 11k | 184 | Nov 2026 | 0 |
| unpdf | 45M | ×95 | 1.3k | 106 | Nov 2026 | 0 |
| React-pdf renderer | 38M | ×8.1 | 17k | 205 | Aug 2026 | 0 |
| pdfmake | 18M | ×4.3 | 12k | 190 | Nov 2026 | 2 |
| pdfme | 1.2M | ×5.3 | 5.1k | 520 | Oct 2026 | 0 |
| jsPDF | 87M | ×5.6 | 31k | 29 | Mar 2026 | 12 |
| pdf-lib | 125M | ×15 | 8.7k | 0 | Nov 2021 | 0 |

All categories: https://elestia.ai/opensource/index.md
