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.
Asked
Active
Viewed 1.2k times
0
-
1Make sure you're adding lib JS before `demoFromHTML()` function is called. – Alok Patel Jul 26 '16 at 10:24
-
1"jsPDF is not defined" means that, er, jsPDF isn't defined, so you have a script loading problem. – gcampbell Jul 26 '16 at 10:25
-
1You should download the js file from that link and add it with script tag to your project – Qsprec Jul 26 '16 at 10:31
-
Thank you for your reply, I've tried whatever you said but it's not effect on my problem. – Suraj Sakhare Jul 28 '16 at 12:59
1 Answers
2
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)

Beckham_Vinoth
- 701
- 2
- 13
- 39
-
Thank you for your reply, I've tried whatever you said but it's not effect on my problem. – Suraj Sakhare Jul 28 '16 at 13:00
-
Can you please show me your code ? So that i can find out where the problem is exactly on . – Beckham_Vinoth Jul 28 '16 at 13:05
-
Hi Becky Thanks for your reply. first i've added following js but it was not working (http://mrrio.github.io/jsPDF/dist/jspdf.debug.js) Now i've tried with following js now its working properly (https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.2.61/jspdf.debug.js) Thank you – Suraj Sakhare Jul 28 '16 at 14:19
-