title: need jsPDF and html2pdf to create pdf and download it but no response
body: <p>I need to create a function that turns webpages into a pdf file, then download it after a click function.</p>
  <p>My function is</p>
  <pre><code>$('&lt;script src=&quot;/webroot/help/jspdf.min.js&quot;&gt;&lt;/script&gt;').appendTo('head'); 
  $('&lt;script src=&quot;/webroot/help/html2pdf.js&quot;&gt;&lt;/script&gt;').appendTo('head'); 
  var jsPDF = window.jspdf.jsPDF;   
  var pdf = new jsPDF('1','pt','a4');
  pdf.canvas.height=72*11;
  pdf.canvas.width = 72*8.5;
  html2pdf($(&quot;div[widgetname=DC]&quot;),pdf,function(pdf){
      pdf.save('file.pdf');
  });
  </code></pre>
  <p>I checked no downloads nor errors msg.</p>