title: jsPDF multi page PDF with HTML renderer
body: <p>I am using jsPDF in my site to generate PDFs. But now I have multiple DIVs to print in a single PDF. which may take 2 to 3 pages.</p>
  
  <p>For example:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div id="part1"&gt;
    content
  &lt;/div&gt;
  
  &lt;div id="part2"&gt;
    content
  &lt;/div&gt;
  
  &lt;div id="part2"&gt;
     content
  &lt;/div&gt;
  </code></pre>
  
  <p>my JS code </p>
  
  <ul>
  <li>This works but not as I expected, It add a part of the content(which cannot be included in more than one page).</li>
  <li>It removes html tags like br, h1  etc.</li>
  </ul>
  
  <pre class="lang-js prettyprint-override"><code>    function formtoPDF() {
        jsPDF.API.mymethod = function() {
          // 'this' will be ref to internal API object. see jsPDF source
          // , so you can refer to built-in methods like so:
          //   this.line(....)
          //   this.text(....)
        };
        var doc = new jsPDF();
        doc.mymethod();
        var pdfPart1 = jQuery('#genPDFpart1');
        var pdfPart2 = jQuery(".ltinerary");
        var pdfPart3 = jQuery("#domElementHTML");
        var specialElementHandlers = {
          '#loadVar': function(element, renderer) {
            return true;
          }
        };
        doc.fromHTML(pdfPart1.html() + pdfPart3.html() + pdfPart3.html(), 15, 15, {
          'width': 170,
          'elementHandlers': specialElementHandlers
        });
        doc.output('save', 'Download.pdf');
      }
  </code></pre>
  
  <p>Can I have a solution for this. Thanks in advance pals .</p>