title: Integrating HTML2PDF in laravel 4
body: <p>I'm trying to integrate <a href="http://html2pdf.fr/en/default" rel="nofollow">HTML2PDF library</a>  in <a href="http://laravel.com" rel="nofollow">Laravel 4</a></p>
  
  <p>They doesn't support <a href="http://getcomposer.org" rel="nofollow">composer</a> so I downloaded the latest version of html2pdf</p>
  
  <p>and put it to Laravel vendor directory and called the library from routes.php</p>
  
  <pre><code>Route::get('/', function()
  {
  
  require_once(dirname(__FILE__).'/../vendor/html2pdf/html2pdf.class.php');
  
  $html2pdf = new HTML2PDF('P','A4','fr');
  $html2pdf-&gt;WriteHTML('&lt;p&gt;Hello WOlrd&lt;/p&gt;');
  $html2pdf-&gt;Output('exemple.pdf');
  
  });
  </code></pre>
  
  <p>but I'm keep getting this error </p>
  
  <pre><code>  Whoops
    ErrorException
    Undefined property: HTML2PDF::$_subFIRST_HEADER
  </code></pre>
  
  <p>Anyone have a solution about how to integrate html2pdf in laravel 4 ?</p>