title: JSPDF - Only a part of the page
body: <p>I'm trying to export the content of a DIV in a PDF using the library jsPDF .</p>
  
  <p>The problem is that when i try to export the content of the div, what I see in the pdf is only a part of the real content of the div and there isn't all the document I want to export.</p>
  
  <p>Here is the code :</p>
  
  <pre><code>// Javascript
  function pdf() {
          var doc = new jsPDF('p', 'in', 'letter');
          var specialElementHandlers = {
              '#ricercaChat': function (element, renderer) {
                  return true;
              }
          };
          doc.fromHTML($("#ricercaChat").html(), 15, 15, {
                  'width':170,
                  'elementHandlers': specialElementHandlers
          });
          doc.save('role.pdf');
      }
  
  //HTML
  &lt;a href="#" onclick="pdf()"&gt;&lt;img src="immagini/pdf1.png"&gt;&lt;/a&gt;
  &lt;div id="ricercaChat" width="100%"&gt;  
  ...( html loaded with jQuery.load that is another page )&lt;/div&gt;
  </code></pre>
  
  <p>I've tried to modify the function in :</p>
  
  <pre><code>var htmlall = document.getElementById('ricercaChat').innerHTML; // there is ALL the html content
  doc.fromHTML(htmlall, 15, 15, { ...
  </code></pre>
  
  <p>Doing in this mode, the pdf is completely blank.</p>
  
  <p>How can I solve this problem?
  Thanks a lot</p>