title: TypeError: doc.fromHTML is not a function
body: <p>So i'm running this code to print sections on a page using jsPDF but he keeps returning </p>
  
  <blockquote>
    <p>TypeError: doc.fromHTML is not a function</p>
  </blockquote>
  
  <pre><code>function printPDF(object){
      var section_id = jQuery(object).parent().find('p').text().substr(0,3).replace('.','_');
      if(!jQuery('#contentsection'+section_id).length){
          jQuery(object).parent().parent().parent().before('&lt;div id="contentsection'+section_id+'"&gt;'+'&lt;/div&gt;');
      }
      var title_block = jQuery(object).parent().parent().parent();
      var text_under_title = jQuery(object).parent().parent().parent().next();
      jQuery('#contentsection'+section_id).append(title_block);
      jQuery('#contentsection'+section_id).append(text_under_title);
  
      var doc = new jsPDF();
      var specialElementHandlers = {
          '#editor': function (element, renderer) {
              return true;
          }
      }; 
  
      jQuery('.print-to-pdf').click(function () {
          doc.fromHTML(jQuery('#contentsection'+section_id).html(), 15, 15, {
              'width': 170,
             // 'elementHandlers': specialElementHandlers
          });
          doc.save('test-file.pdf');
      });
  
  }
  </code></pre>
  
  <p>Someone that knows what happens or knows what  i'm doing wrong, i dont know what these 'elementHandlers' are too.  </p>