title: Create multiple page PDF document jsPDF
body: <p>For quite some time i am trying to create a multiple page PDF with jsPDF. </p>
  
  <p>I have an HTML document with several DIV's </p>
  
  <pre><code>&lt;div id="pdfContainer"&gt;
      &lt;div id="page1"&gt;Content page 1&lt;/div&gt;
      &lt;div id="page2"&gt;Content page 2&lt;/div&gt;
      &lt;div id="page3"&gt;Content page 3&lt;/div&gt;
      &lt;div id="page4"&gt;Content page 4&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I tried it with html2canvas but prefer html2pdf 
  (i have html2pdf.js included).</p>
  
  <pre><code> var doc = new jsPDF();
      var elementHandler = {
          '#page1': function (element, renderer) {
              return true;
          },
          '#page2': function (element, renderer) {
              return true;
          },
          '#page3': function (element, renderer) {
              return true;
          },
          '#page4': function (element, renderer) {
              return true;
          }
      };
      var source = window.document.getElementById("pdfcontainer");
      doc.fromHTML($('#pdfcontainer').get(0), 15, 15, {
          'width': 170,
          'elementHandlers': specialElementHandlers
      });
      doc.output('dataurlnewwindow', {});
  }
  </code></pre>
  
  <p>The code above is my last try, but results in an empty PDF.</p>
  
  <p>I also used</p>
  
  <pre><code>var html = $('#page1').html();
      html2pdf(html, pdf, function(pdf) {
          pdf.output('dataurlnewwindow');
      });
  </code></pre>
  
  <p>Which is working, but only for page 1</p>
  
  <p>Is there an easy way to make this work? Or do i have to make the PDF page by page</p>