title: jsPDF Plugin NOT working
body: <p>I found JavaScript plugin  <a href="https://parall.ax/products/jspdf" rel="nofollow noreferrer">jsPDF</a> which convert HTML to PDF file document.
  I find it very useful but at a certain point in time the plugin fails with an error in console:</p>
  
  <pre><code>jspdf.js:8009 Uncaught TypeError: Cannot read property '1' of undefined
  at Renderer.renderParagraph (jspdf.js:8009)
  at Renderer.setBlockBoundary (jspdf.js:8059)
  at DrillForContent (jspdf.js:7611)
  at DrillForContent (jspdf.js:7579)
  at DrillForContent (jspdf.js:7579)
  at DrillForContent (jspdf.js:7579)
  at DrillForContent (jspdf.js:7579)
  at DrillForContent (jspdf.js:7579)
  at jspdf.js:7747
  at done (jspdf.js:7622)
  </code></pre>
  
  <p>The problem I found is the plugin fails converting some html string.
  Does someone know any working the plugin to solve the problem:</p>
  
  <pre><code>//conver to PDF
    SMSLiTe('click',bigPipe.saveDoc,function(e){
    e.preventDefault();
    var a = $(this), p  = $(bigPipe.printArea);
    if (!a.hasClass(bigPipe.d)) {
       a.addClass(bigPipe.d).prepend(bigPipe.loading);
    var doc = new jsPDF();
    var elementHandler = {
      '#ignorePDF': function (element, renderer) {
        return true;
      }
    };
  
  
    var source  = $('#print-area').html();
    doc.fromHTML(
        source,
        15,
        15,
        {
          'width': 180,'elementHandlers': elementHandler
        },function(){doc.save(t +'.pdf')});
  
        setTimeout(function(){a.removeClass(bigPipe.d).find('span').remove()},600);
      }
    });
  </code></pre>
  
  <p>Please how do I solve this problem? I have lots of valid HTML stored as student notes in database and when I user request to view a note I pull this html and display it then an event to is bind to a button to convert the container to pdf file document.</p>
  
  <p>Please help me solve this.
  Thank you.</p>