1There is one really good pdf tutorial for javascript that I like.
2Here's the link: https://goalkicker.com/JavaScriptBook
1var doc = new jsPDF();
2var elementHandler = {
3 '#ignorePDF': function (element, renderer) {
4 return true;
5 }
6};
7var source = window.document.getElementsByTagName("body")[0];
8doc.fromHTML(
9 source,
10 15,
11 15,
12 {
13 'width': 180,'elementHandlers': elementHandler
14 });
15
16doc.output("dataurlnewwindow");
17