title: Export HTML table to pdf using jspdf
body: <p>I need to export the HTML table to pdf file using jspdf. I tried the below code but it displays the blank/empty output in pdf file. Any suggestions or sample code for this would be helpful.
  `</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function demo1() {
          $(function () {
              var specialElementHandlers = {
                  '#editor': function (element,renderer) {
                      return true;
                  }
              };
           $('#cmd').click(function () {
                  var doc = new jsPDF();
                  doc.fromHTML($('#htmlTableId').html(), 15, 15, {
                      'width': 170,'elementHandlers': specialElementHandlers
                  });
                  doc.save('sample-file.pdf');
              });  
          }); 
      }
  &lt;/script&gt;
  `
  </code></pre>