You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version of jsPDF
jspdf@1.3.5 installed via npm, with installed typings for angular2
Have you tried using jspdf.debug.js?
no
Steps to reproduce
when this piece of code is called :
import * as jsPDF from "jspdf";
...
downloadPdf() {
let doc:jsPDF = new jsPDF();
let source:HTMLElement = window.document.documentElement;
doc.fromHTML(source, 5,5);
doc.save('test.pdf');
}
the following error appears in the jspdf.min.js. Only for generating pdf from html when sent as string or HTMLElement, for ordinary text it works fine.