title: how to get the content of current webpage in mpdf library
body: <p>i have the below code written, actually i thought of converting the current webpage to pdf document, but i couldnt make how to declare the current url and get the contents of the webpage in pdf doc. below is my code.</p>
  
  <pre><code>&lt;?php 
  require("mpdf60/mpdf.php");
  $mpdf=new mPDF('utf-8','Letter-L','','',15,10,16,10,10,10);//A4 page in portrait for landscape add -L.
  $mpdf-&gt;SetHeader('|Your Header here|');
  $mpdf-&gt;setFooter('{PAGENO}');// Giving page number to your footer.
  $mpdf-&gt;useOnlyCoreFonts = true;    // false is default
  $mpdf-&gt;SetDisplayMode('fullpage');
  $mpdf-&gt;debug = true;
  // Buffer the following html with PHP so we can store it to a variable later
  ob_start();
  ?&gt;
  &lt;?php  
  include "contractview.php?ID=129";
   //This is your php page ?&gt;
  &lt;?php 
  $html = ob_get_contents();
  ob_end_clean();
  // send the captured HTML from the output buffer to the mPDF class for processing
  $mpdf-&gt;WriteHTML($html);
  //$mpdf-&gt;SetProtection(array(), 'user', 'password'); uncomment to protect your pdf page with password.
  $mpdf-&gt;Output();
  exit;
  ?&gt; 
  </code></pre>
  
  <p>i have written <strong>include "contractview.php?ID=129";</strong> but this was not working, can any one please help me in how to assign this to get the current page contents.</p>