title: How to print full page using Html2Canvas and JsPDF
body: <p>I wanted to save full page as pdf using html2canvas and JsPDF. none of the methods I ever tried seems to work. </p>
  
  <pre><code>html2canvas(document.body, {
          allowTaint: true,
          onrendered: function(canvas) {
              var image = canvas.toDataURL('image/png');
  
              var pdf = new jsPDF();
              pdf.addImage(image, 'JPEG', 0, 0);
              pdf.save('invoice.pdf');
          }
      });
  </code></pre>
  
  <p>Currently this prints only the viewport</p>
  
  <p>How to print full page/ container. or any other better alternatives?</p>