title: jsPDF page split breaks the content after it's page size exceeds
body: <p>I have this code. Can anyone tell me how I can split the page without affecting the content?</p>
  
  <pre class="lang-js prettyprint-override"><code>$('#export').click(function(e) {
    e.preventDefault();
    var options = {
      pagesplit: true,
      margin: {
        top: 10,
        right: 10,
        bottom: 10,
        left: 10,
        useFor: 'page'
      }
    };
    var pdf = new jsPDF('p', 'mm', 'a4');
    pdf.internal.scaleFactor = 5;
    pdf.page = 1;
    //  var width = "1000px"
    //   var height = "1000px"
    pdf.addHTML($("#pdfdownload"), 0, 0, options, function() {
      // function footer() {
      var pageCount = pdf.internal.getNumberOfPages();
      for (i = 0; i &lt; pageCount; i++) {
        pdf.setPage(i);
        pdf.text(10, 10, pdf.internal.getCurrentPageInfo().pageNumber + "/" + pageCount);
      };
      pdf.save('Audit.pdf');
    });
  });
  </code></pre>