You can use const { jsPDF } = window.jspdf; as shown in the official documentation if you want to use the CDN.
Even tho, I still do recommend the NPM package way (so does the package itself).
Answer from kissu on Stack Overflowcdnjs
cdnjs.com › home › libraries › jspdf
jspdf - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.3/jspdf.es.min.js · https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.3/jspdf.es.min.js.map · https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.3/jspdf.umd.js · https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.3/jspdf.umd.js.map ·
jsDelivr
jsdelivr.com › package › npm › jspdf
jspdf CDN by jsDelivr - A CDN for npm and GitHub
Published May 19, 2015
Repository https://github.com/parallax/jsPDF
cdnjs
cdnjs.com › home › libraries › jspdf-autotable
jspdf-autotable - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers
Content delivery at its finest. cdnjs is a free and open-source CDN service trusted by over 12.5% of all websites, serving over 200 billion requests each month, powered by Cloudflare.
jsPDF
artskydj.github.io › jsPDF › docs › index.html
jsPDF - GitHub Pages
To add the font to jsPDF use our fontconverter in /fontconverter/fontconverter.html . The fontconverter will create a js-file with the content of the provided ttf-file as base64 encoded string and additional code for jsPDF. You just have to add this generated js-File to your project.
Top answer 1 of 2
11
You can use const { jsPDF } = window.jspdf; as shown in the official documentation if you want to use the CDN.
Even tho, I still do recommend the NPM package way (so does the package itself).
2 of 2
2
This one seems to be working :
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.4.1/jspdf.debug.js"></script>
jsDelivr
jsdelivr.com › package › npm › jspdf-autotable
jspdf-autotable CDN by jsDelivr - A CDN for npm and GitHub
February 26, 2025 - A free, fast, and reliable CDN for jspdf-autotable. Generate pdf tables with javascript (jsPDF plugin)
Published Aug 24, 2015
CodePen
codepen.io › tmilar › pen › MWbOXox
jsPDF lib minimal example
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <!-- Js PDF --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.0/jspdf.umd.min.js"></script> <!-- Js PDF Auto Table --> <script src="https://cdn.jsdelivr.net/npm/jspdf-autotable@3/dist/jspdf.plugin.autotable.min.js"></script> <title>Title of the document</title> </head> <body> <div class="col text-end"> <button type="button" class="btn btn-secondary" id="btnGenerateReport" onclick="prepareReport()"> Generate Report </button> </div> <script> function prepareReport() { var doc = new jspdf.jsPDF(); doc.autoTable({ html: '#reportTable' }); const stationSelected = "my-station"; const dateSelected = "my-date"; doc.save(stationSelected + '_' + dateSelected + '.pdf'); } </script> </body> </html>
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.
GeeksforGeeks
geeksforgeeks.org › html › how-to-generate-pdf-file-using-jspdf-library
Generate PDF File Using jsPDF Library - GeeksforGeeks
The jsPDF library is included via a CDN, enabling JavaScript-based PDF generation.
Published July 23, 2025
npm
npmjs.com › package › jspdf
jspdf - npm
4 weeks ago - To use jsPDF in older browsers like Internet Explorer, polyfills are required. You can load all required polyfills as follows: ... Alternatively, you can load the prebundled polyfill file. This is not recommended, since you might end up loading polyfills multiple times. Might still be nifty for small applications or quick POCs. <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/3.0.4/polyfills.umd.js"></script>
» npm install jspdf
Published Nov 19, 2025
Version 3.0.4
Repository https://github.com/parallax/jsPDF
Homepage https://github.com/parallax/jsPDF
Esri Community
community.esri.com › t5 › arcgis-javascript-maps-sdk-questions › esri-js-sdi-amp-jspdf › td-p › 1417780
ESRI JS SDI & jsPDF - Esri Community
May 1, 2024 - Is anybody using jsPDF for outputs when working with data accessed via the ESRI JS SDK? I was trying to keep things simple to start and do everything client side in the browser so I've been using the ESRI SDK via the CDN. I am running into problems trying to load the jsPDF library from CDN on the ...
CDNPKG
cdnpkg.com › home › jspdf › 1.4.1
JSPDF 1.4.1 CDN links - CDNPKG
2 CDN to use with JSPDF 1.4.1. Find out the best CDN to use with jspdf 1.4.1 or use multiple CDN as fallback. Simply copy and paste one of these URL !.
CDNPKG
cdnpkg.com › home › jspdf › jspdf.min.js
JSPDF.MIN.JS: DOWNLOAD - CDNPKG
Download jspdf.min.js or get a CDN url for 25 versions of jspdf.
CDNPKG
cdnpkg.com › home › jspdf
JSPDF CDN links - CDNPKG
1 CDN to use with JSPDF. Find out the best CDN to use with jspdf or use multiple CDN as fallback. Simply copy and paste one of these URL !.
jsDelivr
jsdelivr.com › package › npm › jspdf-new
jspdf-new CDN by jsDelivr - A CDN for npm and GitHub
Published Jul 11, 2019
Repository https://github.com/MrRio/jsPDF
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
Repository https://github.com/hackerrdave/jsPDF
GitHub
github.com › parallax › jsPDF › issues › 2877
JsPDF CDN link is not working · Issue #2877 · parallax/jsPDF
June 11, 2020 - Hey, I think the CDN URL mentioned in the README.md is no longer working https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.1.0/jspdf.umd.min.js
Published Aug 27, 2020
Top answer 1 of 4
1
@Aman Trivedi1 · then load that in UI script table as external library · 1) create UI script · 2) give some name and visit that link -> · https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js · 3) copy the entire js and paste and save · 4) Ensure you mark Global checkbox as true and also active. Global checkbox may not be on form but you can mark it as true from list · example · · If my response helped please mark it correct and close the thread so that it benefits future readers. · Regards,AnkurCertified Technical Architect || 9x ServiceNow MVP ServiceNow Community Leader
2 of 4
0
@Aman Trivedi1 · why to download UI page? · Regards,AnkurCertified Technical Architect || 9x ServiceNow MVP ServiceNow Community Leader