I want to use jsPDF.html to convert html page to pdf, and I\'m using this code:
savePdf () {
var pdf = new jsPDF({u
jsPDF needs html2canvas to be declared in the global scope to work, so you have to write
window.html2canvas = html2canvas;
somewhere before you call html()
.
That said, I wasn't able to make it work either, so I resorted to a wrapper that works around the issue by calling manually html2canvas()
then giving the resulting canvas to jsPDF.