JavaScript PDF and document libraries

Find packages for generating or rendering PDF documents in JavaScript, including jsPDF, html2pdf.js, and PDF.js.

3 indexed packages. Inspect package specifications and compare alternatives according to their actual role in your application.

Packages in this category

  • PDF.js: Generic build of Mozilla's PDF.js library.
  • jsPDF: PDF Document creation from JavaScript
  • html2pdf.js: Client-side HTML-to-PDF rendering using pure JS

What to compare

  • Separate document generation from PDF rendering and viewing.
  • Check documented browser/server support and requirements for workers, fonts, or external assets.
  • Review layout, pagination, image handling, and output-format requirements in official examples.
  • Interpret bundle measurements with all required assets and companion modules in mind.

Example package specifications

pdfjs-dist

Latest version6.4.299
Runtime dependencies0
Bundled typesBundled declarations
Gzip measurement130.76 KiB

Evidence and freshness

jspdf

Latest version4.2.1
Runtime dependencies3
Bundled typesBundled declarations
Gzip measurement126.73 KiB

Evidence and freshness

Category comparisons

    Filter this category by your requirements