EVERYTHING XIAOMI
Get listed

jsPDF

jsPDF is a JavaScript library for generating PDFs, including tickets, reports, and certificates.

Place
#27 of 46
Score
6.1
jsPDF's website

What jsPDF is

jsPDF is a JavaScript library for generating PDFs, including tickets, reports, and certificates. It is described as an HTML5 client-side solution and accepts text, HTML, images, SVG, and TTF fonts. Documents can be configured with a paper size, orientation, and measurement units. The project distributes ES2015 modules, a Node.js build, UMD modules, and polyfills for older browsers. Installation is documented through npm or Yarn, and the UMD build can also be loaded from unpkg. jsPDF can be imported into major toolkits and frameworks, includes TypeScript typings, and documents Meteor installation. Its HTML method can use html2canvas, while string HTML input also uses dompurify. UTF-8 text requires a custom font containing the needed glyphs. Advanced API mode supports patterns, FormObjects, and transformation matrices; compatibility mode retains plugin compatibility but lacks some advanced features. The project advises sanitizing user input and says Node.js local file reading is restricted by default. jsPDF is MIT-licensed. The open-source library is free, but it does not include free support.

Good

  • Accepts text, HTML, images, SVG, and TTF fonts
  • Supports configurable paper size, orientation, and units
  • Includes TypeScript typings and framework integration
  • Distributed under the MIT License

Watch out

  • UTF-8 text requires a custom font with needed glyphs
  • HTML generation can require optional dependencies
  • Open-source software does not include free support
  • Only latest major and minor versions receive security updates

Who it suits

It suits developers building PDF generation into JavaScript applications or frameworks. Teams needing UTF-8 text should plan to supply a suitable custom font.

Verdict

jsPDF offers multiple JavaScript distribution formats and inputs for PDF generation. Account for its font requirements, HTML dependencies, and support terms before choosing it.

Plans and prices

From jsPDF's own pricing page, checked 9 Oct 2026.

All about pricing
PlanPriceWhat it gives you
Free useFreeOpen-source PDF generation library

The facts

Each one read from jsPDF's own pages, with the date it was checked.

What it does

Advanced features
Advanced API mode supports patterns, FormObjects, and transformation matrices, while compatibility mode preserves plugin compatibility but lacks some of those features.checked 9 Oct 2026
Client-side
The maker describes jsPDF as an HTML5 client-side solution for PDF generation.checked 9 Oct 2026
Document setup
Documents can be configured with a chosen paper size, orientation, and measurement units.checked 9 Oct 2026
Fonts
UTF-8 text requires a custom font with the needed glyphs, and jsPDF supports TTF files.checked 9 Oct 2026
Framework integration
The README says jsPDF can be imported into major toolkits and frameworks and provides TypeScript typings; it also documents Meteor installation.checked 9 Oct 2026
HTML support
The HTML method uses optional html2canvas and, for string HTML input, dompurify dependencies.checked 9 Oct 2026
Install
The project recommends installing jsPDF from npm or Yarn and also documents loading its UMD build from unpkg.checked 9 Oct 2026
License
jsPDF is distributed under the MIT License.checked 9 Oct 2026
Maintainers
The README says jsPDF is co-maintained by yWorks.checked 9 Oct 2026
Purpose
jsPDF is a JavaScript library for generating PDFs, including event tickets, reports, and certificates.checked 9 Oct 2026
Runtime formats
The distribution includes ES2015 modules, a Node.js build, UMD modules, and polyfills for older browsers.checked 9 Oct 2026
Security
The project advises sanitizing user input and says Node.js local file reading is restricted by default.checked 9 Oct 2026
Security updates
The security policy says only the latest major and minor versions receive security updates.checked 9 Oct 2026
Support
The product page says the open-source software does not include free support and offers paid personalised project assistance.checked 9 Oct 2026

Alternatives to jsPDF

All alternatives
  1. 1Carbone logo

    Carbone

    Free planOpen sourceWebAPILinuxmacOS
    8.3Free plan
  2. 2PDFMonkey logo

    PDFMonkey

    PDFMonkey

    Free planWebAPI
    7.6From €5 a month
  3. 3CraftMyPDF logo

    CraftMyPDF

    CraftMyPDF

    Free planWebAPI
    7.5From $29 a month
  4. 4DocRaptor logo

    DocRaptor

    Artifex Software Inc.

    Free planWebAPI
    7.1From $15 a month
  5. 5

    ReportLab

    Free planWebAPILinuxmacOS
    7.1Free plan
  6. 6

    Anvil PDF Generation API

    Anvil

    Free planWebAPI
    7.0From $99 a month