title: Download PDF file using jsPDF
body: <p>Trying to download PDf file using examples at <a href="https://parall.ax/products/jspdf" rel="nofollow">https://parall.ax/products/jspdf</a></p>
  
  <p>Relevant HTML Code is as shown below.</p>
  
  <p>It keeps giving error as "Uncaught TypeError: Cannot read property 'config' of undefined jspdf.debug.js
  Uncaught TypeError: Cannot read property 'canvas' of undefined" and doesn't generate any PDF file.</p>
  
  <p>Thanks for your help.</p>
  
  <pre><code>&lt;script type="text/javascript" language="javascript" src="#{applicationConfiguration.appStaticFileContextPath}/desktop/js/jsPDF-master/dist/jspdf.debug.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript" language="javascript" src="#{applicationConfiguration.appStaticFileContextPath}/desktop/js/jsPDF-master/plugins/from_html.js?"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" language="javascript" src="#{applicationConfiguration.appStaticFileContextPath}/desktop/js/jsPDF-master/plugins/canvas.js?"&gt;&lt;/script&gt;
  
  function downloadPDF() {
     var doc = new jsPDF('p', 'in', 'letter');
       var source = $('#overview_tab').first();
       var specialElementHandlers = {
           '#banking_tab': function(element, renderer) {
               return true;
           }
       };
  
       doc.fromHTML(
           source, // HTML string or DOM elem ref.
           0.5,    // x coord
           0.5,    // y coord
           {
               'width': 7.5, // max width of content on PDF
               'elementHandlers': specialElementHandlers
           });
  
       doc.output('dataurl');
  
  }
  </code></pre>