title: html2pdf covert html to pdf from url
body: <p>Trying to generate PDFs with html2pdf. I want to generate using a URL.</p>
  
  <p>The code I have generates a PDF, but the PDF is blank which, I assume, means not HTML is being pulled from the specified url.</p>
  
  <pre><code>require_once(dirname(__FILE__).'/html2pdf.class.php');
  $url = 'http://example.com/survey/exportpdf.php?id=6';
  try
  {
      $html2pdf = new HTML2PDF('P', 'A4', 'en');
      //$html2pdf-&gt;setModeDebug();
  
      $html2pdf-&gt;getHtmlFromPage($url);
  
      $html2pdf-&gt;Output($id.'.pdf','D');
  }
  catch(HTML2PDF_exception $e) {
      echo $e;
      exit;
  }
  </code></pre>
  
  <p>Is anyone familiar with html2pdf? I've gone through the docs and the examples, but I can't find any reference to this method. I've found the definition here, but it doesn't tell much.</p>