title: Converting HTML content to PDF file using jsPDF
body: <p>Trying to automatically convert this  content to a pdf file. Based on how the rest of my code is setup, I have to have the button to click INSIDE the div that I want to export to pdf. Is this a problem? Here's what I have so far. When I click the button, it does nothing.</p>
  
  <p>JS:</p>
  
  <pre><code>&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.4/jspdf.debug.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  jQuery('#generatereport').click(function () {
      doc.fromHTML(jQuery('#lppresults').html(), 15, 15, {
          'width': 170
      });
      doc.save('sample-file.pdf');
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div class="survey-results" style="display: none;" id="lppresults"&gt;
     &lt;button id="generatereport"&gt;Download Report&lt;/button&gt;
     TEST CONTENT
  &lt;/div&gt;
  </code></pre>