title: how to get full web page pdf in pdfmake?
body: <p>I am working on a web application and I have to convert a HTML page (have multiple tables and datatables) to PDF. I am using <code>pdfmake</code> to convert the content of the page to <code>PDF</code>. </p>
  
  <p>This is the script I am using for it</p>
  
  <pre><code>&lt;script type="text/javascript" &gt;
  var docDefinition = { content: "This is a sample PDF" };
  alert("Will this work ");
  pdfMake.createPdf(docDefinition).download('test.pdf');      
  &lt;/script&gt;
  </code></pre>
  
  <p>Now, I want to convert full <code>HTML page</code> to <code>PDF</code> but I have na idea how to do this in <code>pdfmake</code>. </p>
  
  <p>In jsPDF there is something like this</p>
  
  <pre><code>&lt;script&gt;
       function demoFromHTML() {
           var pdf = new jsPDF('p','pt','a4');
           pdf.addHTML(document.body,{pagesplit:true},function() {
                    pdf.save('Test.pdf');
                }); 
             document.getElementById('buttons').style.visibility = 'hidden';
  
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>i.e., <code>document.body</code> to convert full web page to PDF. Is there any similar code available in pdfmake as well.</p>
  
  <p>Is there any other way to convert whole web page to pdf apart from jsPdf and which uses javascript?</p>