0
votes

Hi i followed following link but still getting error Uncaught ReferenceError: jsPDF is not defined How to properly use jsPDF library I have copied all data and run on my xampp but still getting same error in console. Could anyone please help me to solve this issue.

enter image description here

1
Make sure you're adding lib JS before demoFromHTML() function is called.Alok Patel
"jsPDF is not defined" means that, er, jsPDF isn't defined, so you have a script loading problem.gcampbell
You should download the js file from that link and add it with script tag to your projectQsprec
Thank you for your reply, I've tried whatever you said but it's not effect on my problem.Suraj Sakhare

1 Answers

2
votes

1.Download jspdf.min.js file and add that in your program, and locate that path as below,

 <script src="this file path/jspdf.min.js">
 </script> <script src="this file path/jspdf.plugin.autotable.js"></script> (<---If needed)