title: Unable to add multiple pages to the pdf using pdfmaker
body: <p>I am new to pdfmaker and I have a data around 15 pages,  when i render my html div it always displays a single page unable to iterate all data onto the pdf..</p>
  <p>Any help will be appreciated thanks..</p>
  <p>downloadAllClaims(){</p>
  <pre><code>var content = [];
  var pdfElements = document.getElementsByClassName(&quot;myTable&quot;);
  for (var i = 0; i &lt; pdfElements.length; i++) {
          html2canvas(&lt;HTMLElement&gt;pdfElements[i]).then(canvas =&gt; {
            var data = canvas.toDataURL();
  
               return content.push({
                  image: data,
                  width: 500,
                  // pageBreak: 'after'
              });
              
          })
  }
  </code></pre>