there is a problem with the latest version 1.5.3. try installing a previous version. It worked for me:

npm install [email protected] --save
Answer from Mohanad Haddadin on Stack Overflow
🌐
npm
npmjs.com › package › jspdf
jspdf - npm
4 weeks ago - PDF Document creation from JavaScript. Latest version: 3.0.4, last published: 17 days ago. Start using jspdf in your project by running `npm i jspdf`. There are 2036 other projects in the npm registry using jspdf.
      » npm install jspdf
    
Published   Nov 19, 2025
Version   3.0.4
🌐
Mendix
community.mendix.com › link › spaces › java-actions › questions › 141864
How to Resolve Cant resolve canvg in jsPDF Integration in ...
December 31, 2024 - The Mendix Forum is the place where you can connect with Makers like you, get answers to your questions and post ideas for our product managers.
🌐
jsDelivr
cdn.jsdelivr.net [email protected]
jspdf-npm-packages CDN by jsDelivr - A free, fast, and reliable Open Source CDN
jspdf-npm-packages CDN by jsDelivr - A free, fast, and reliable Open Source CDN for npm and GitHub
🌐
npm Trends
npmtrends.com › html-pdf-vs-jspdf-vs-jspdf-autotable-vs-pdf
html-pdf vs jspdf vs jspdf-autotable vs pdf | npm trends
Comparing trends for html-pdf 3.0.1 which has 119,379 weekly downloads and 3,616 GitHub stars vs. jspdf 3.0.4 which has 4,229,866 weekly downloads and 30,825 GitHub stars vs. jspdf-autotable 5.0.2 which has 1,130,666 weekly downloads and 2,480 GitHub stars vs. pdf 0.1.0 which has 1,435 weekly ...
🌐
npm
npmjs.com › package › jspdf-autotable
jspdf-autotable - npm
February 26, 2025 - Generate pdf tables with javascript (jsPDF plugin). Latest version: 5.0.2, last published: 10 months ago. Start using jspdf-autotable in your project by running `npm i jspdf-autotable`. There are 477 other projects in the npm registry using ...
      » npm install jspdf-autotable
    
Published   Feb 26, 2025
Version   5.0.2
Author   Simon Bengtsson
🌐
WeWeb Community
community.weweb.io › ask us anything › how do i?
Generating PDF - NPM Plugin - jsPDF - How do I? - WeWeb Community
November 28, 2023 - This one is a more specific question about the NPM Plugin: I’m trying to use jsPDF and on WeWeb it’s saying “not defined” error for the new jsPDF() code. However, when using the same code in another tool (JSFiddle) the same code works normally. JSFiddle PDF Export Example This code ...
Find elsewhere
🌐
npm
npmjs.com › package › jspdf-font
jspdf-font - npm
February 14, 2020 - npm install jspdf-font --save import initFont from 'jspdf-font' initFont(jsPDFAPI, fontFamily) <script src="index.js"></script> const {initFont} = window.jspdfFont initFont(jsPDFAPI, fontFamily) @param · jsPDFAPI: jsPDF.API · fontFamily: ...
      » npm install jspdf-font
    
Published   Feb 14, 2020
Version   1.0.7
🌐
jsDelivr
jsdelivr.com › package › npm › jspdf-npm-packages
jspdf-npm-packages CDN by jsDelivr - A CDN for npm and GitHub
September 11, 2017 - A free, fast, and reliable CDN for jspdf-npm-packages. PDF Document creation from JavaScript
Published   Sep 11, 2017
🌐
PDF-LIB
pdf-lib.js.org
PDF-LIB · Create and modify PDF documents in any ... - JS.ORG
# With npm npm install --save pdf-lib # With yarn yarn add pdf-lib
🌐
jsPDF
artskydj.github.io › jsPDF › docs › index.html
jsPDF - GitHub Pages
To see the examples locally you can start a web server with npm start and go to localhost:8000. Alternatively, you can build jsPDF using these commands in a readily configured online workspace:
🌐
Parallax
parall.ax › products › jspdf
jsPDF
Generate professional PDFs easily with jsPDF, the open-source solution for PDF generation. Create event tickets, reports, certificates, and more in minutes with our intuitive interface.
🌐
npm
npmjs.com › search
keywords:jspdf - npm search
PDF template created for invoice with optional parameters (for NodeJs). Using jsPDF library.
🌐
Maven Repository
mvnrepository.com › artifact › org.webjars.npm › jspdf
Maven Repository: org.webjars.npm » jspdf
Home » org.webjars.npm » jspdf · WebJar for jspdf · Central (19) Central · Atlassian External · Atlassian · WSO2 Releases · WSO2 Public · Hortonworks · Mulesoft · JCenter · KtorEAP · Sonatype · 🌐 · DNS Gurus · Free DNS Tools & Analysis ·
🌐
Maven Repository
mvnrepository.com › artifact › org.webjars.npm › jspdf › 3.0.1
Maven Repository: org.webjars.npm » jspdf » 3.0.1
Home » org.webjars.npm » jspdf » 3.0.1 · WebJar for jspdf · Note: There is a new version for this artifact · Maven · Gradle · SBT · Mill · Ivy · Grape · Leiningen · Buildr · Scope: compile · test · provided · runtime · Scope: compile · test · provided ·
🌐
npm
npmjs.com › package › jspdf-html2canvas
jspdf-html2canvas - npm
February 27, 2024 - A combine usage with jsPDF and html2canvas, which translating html content to PDF file.. Latest version: 1.6.0, last published: 12 hours ago. Start using jspdf-html2canvas in your project by running `npm i jspdf-html2canvas`. There are 7 other projects in the npm registry using jspdf-html2canvas.
      » npm install jspdf-html2canvas
    
Published   Dec 12, 2025
Version   1.6.0
Author   johnnywang
🌐
PDFKit
pdfkit.org
PDFKit
Installation uses the npm package manager.
🌐
React-pdf
react-pdf.org
React-pdf
React renderer for creating PDF files on the browser and server
🌐
Npm
npm.io › package › @types › jspdf
@types/jspdf NPM | npm.io
jspdf provides its own type definitions, so you don't need @types/jspdf installed!