10 Best JavaScript PDF Generator Libraries

List hand-picked by Openbase Experts
Learn More

pl

pdf-lib

Create and modify PDF documents in any JavaScript environment

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
4K
Weekly Downloads
217K
Last Commit
7mos ago
User Rating
5.0/ 5
1
Top Feedback
pdf

pdfmake

Client/server side PDF printing in pure JavaScript

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
10.1K
Weekly Downloads
669K
Last Commit
2mos ago
User Rating
4.7/ 5
18
Top Feedback
9Easy to Use
8Great Documentation
4Performant

pdfkit

A JavaScript PDF generation library for Node and the browser

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
8K
Weekly Downloads
501K
Last Commit
3mos ago
User Rating
4.5/ 5
8
Top Feedback
3Great Documentation
1Performant
1Responsive Maintainers

pdfjs-dist

Generic build of PDF.js library.

Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
700
Weekly Downloads
1.4M
Last Commit
3mos ago
User Rating
5.0/ 5
2
Top Feedback
3Great Documentation
2Poor Documentation
1Performant
rnh

react-native-html-to-pdf

Convert html strings to PDF documents using React Native

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
368
Weekly Downloads
9.1K
Last Commit
6mos ago
User Rating
4.7/ 5
3
Top Feedback
3Great Documentation
3Easy to Use
3Performant
hp

html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
3.4K
Weekly Downloads
153K
Last Commit
1yr ago
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
pp

pdf-parse

Pure javascript cross-platform module to extract text from PDFs.

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
Weekly Downloads
125K
Last Commit
User Rating
5.0/ 5
3
Top Feedback
4Great Documentation
1Easy to Use
1Performant
jsp

jspdf

Client-side JavaScript PDF generation for everyone.

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
22.8K
Weekly Downloads
676K
Last Commit
User Rating
4.0/ 5
39
Top Feedback
3Poor Documentation
2Hard to Use
2Buggy
lab

labelmake

labelmake has moved and now available at pdfme / https://github.com/pdfme/pdfme

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
359
Weekly Downloads
709
Last Commit
3mos ago
User Rating
4.0/ 5
2
Top Feedback
1Poor Documentation
1Hard to Use
1Slow
car

carbone

Fast, Simple and Powerful report generator. Injects JSON and produces PDF, DOCX, XLSX, ODT, PPTX, ODS, ...!

Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
Weekly Downloads
4.9K
Last Commit
User Rating
5.0/ 5
2
Top Feedback
2Great Documentation
2Easy to Use
2Performant
pt

pdf-text

extract text from a pdf as an array of text blocks

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
39
Weekly Downloads
1.2K
Last Commit
8yrs ago
User Rating
4.7/ 5
3
Top Feedback
3Great Documentation
3Easy to Use
2Bleeding Edge
ja

jspdf-autotable

jsPDF plugin for generating PDF tables with javascript

MIT
TypeScript Icon
TypeScript Definitions: Built-In
GitHub Stars
1.8K
Weekly Downloads
228K
Last Commit
2mos ago
stp

svg-to-pdfkit

Insert SVG into a PDF document created with PDFKit

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
318
Weekly Downloads
275K
Last Commit
1mo ago
pdf

pdfcrowd

A Node.js wrapper for the Pdfcrowd API

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
56
Weekly Downloads
1.3K
Last Commit
2mos ago
pm

pdf-merge

Merge multiple PDF Files into a single PDF document

ISC
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
118
Weekly Downloads
8.3K
Last Commit
3yrs ago
mp

markdown-pdf

📄 Markdown to PDF converter

MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
2.4K
Weekly Downloads
4.1K
Last Commit
3yrs ago
pht

phantom-html-to-pdf

Highly scalable html to pdf conversion using phantom workers

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
152
Weekly Downloads
2.3K
Last Commit
2yrs ago
pns

@adobe/pdfservices-node-sdk

The Adobe PDF Services Node.js SDK provides APIs for creating, combining, exporting and manipulating PDFs.

http://adobe.com/go/terms
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
Weekly Downloads
2.1K
Last Commit
ep

electron-pdf

📄 A command line tool to generate PDF from URL, HTML or Markdown files.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
1.1K
Weekly Downloads
296
Last Commit
6mos ago
fp

fill-pdf

A node module to fill out pdf forms (utf8 compatible).

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
54
Weekly Downloads
1.6K
Last Commit
3yrs ago
pff

pdf-fill-form

Fill PDF forms and return either filled PDF or PDF created from rendered page images.

Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
GitHub Stars
203
Weekly Downloads
768
Last Commit
1yr ago

pdftohtmljs

PDF to HTML (pdf2htmlEX) shell wrapper pdftohtmljs

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
134
Weekly Downloads
353
Last Commit
1yr ago
sst

swagger-spec-to-pdf

Dump swagger json spec into pdf document.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
35
Weekly Downloads
114
Last Commit
3yrs ago

gatsby-plugin-pdf

Gatsby plugin that is able generate PDFs out of your gatsby web pages

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
9
Weekly Downloads
86
Last Commit
2yrs ago
rpg

rn-pdf-generator

react-native-pdf-generator, porting the cordova-pdf-generator to react native.

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
4
Weekly Downloads
71
Last Commit
2yrs ago
nod

nodeice

💰 Another PDF invoice generator

MIT
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
82
Weekly Downloads
61
Last Commit
2yrs ago

pdf-viewer-lib

Generic build of PDF.js library.

Apache-2.0
TypeScript Icon
TypeScript Definitions: Not Found
GitHub Stars
700
Weekly Downloads
3
Last Commit
3mos ago