title: Converting webpage to Pdf using mPDF
body: <p>so I'm pretty much losing my mind over here. I have scoured stackoverflow and other sites trying my hardest to get this to work, but to no avail. I just keep getting a blank page. Here is my problem, I am trying to convert a webpage to a printable/emailable PDF when the user clicks a button. I have already installed mPDF on my server, and here is the code I'm using on my 'pdf_test.php' page</p>
  
  <pre><code>    &lt;?php
  
  
  include("http://s-designco.com/gordon/mpdf60/mpdf.php");
  
  ob_start();
  
  $html = '
  &lt;h1&gt;&lt;a name="top"&gt;&lt;/a&gt;mPDF&lt;/h1&gt;
  &lt;h2&gt;Basic HTML Example&lt;/h2&gt;
  This file demonstrates most of the HTML elements.
  &lt;h3&gt;Heading 3&lt;/h3&gt;
  &lt;h4&gt;Heading 4&lt;/h4&gt;
  &lt;h5&gt;Heading 5&lt;/h5&gt;
  &lt;h6&gt;Heading 6&lt;/h6&gt;
  ';
  
  $mpdf=new mPDF();
  $mpdf-&gt;WriteHTML($html);
  $mpdf-&gt;Output('example.pdf');
  ?&gt;
  </code></pre>
  
  <p>I have no clue why this doesn't work. Any help I can get is greatly appreciated! Thank you!</p>