title: Throwing Fatal Error after using dompdf
body: <p>Im trying to write a script that convert HTML file to PDF using dompdf.I have a php file named converter.php with the following lines of code:</p>
  
  <pre><code>&lt;?php
  use Dompdf\Dompdf;
  
  $dompdf = new Dompdf();
  $dompdf-&gt;loadHtml('Hello, its my first HTML to PDF Converter');
  $dompdf-&gt;setPaper('A4', 'landscape');
  $dompdf-&gt;render();
  $dompdf-&gt;stream();
  </code></pre>
  
  <p>After compiling the program it throws 2 exeptions:</p>
  
  <blockquote>
    <p>First:</p>
    
    <blockquote>
      <p>Fatal error: Uncaught Error: Class 'Dompdf\Dompdf' not found in
      C:\xampp\htdocs\PHP-PDFConverter\converter.php on line 4</p>
    </blockquote>
    
    <p>Second:</p>
    
    <blockquote>
      <p>Error: Class 'Dompdf\Dompdf' not found in
      C:\xampp\htdocs\PHP-PDFConverter\converter.php on line 4</p>
    </blockquote>
  </blockquote>
  
  <p>Im sure the problem isn't with the path of some directory. </p>
  
  <p>Edit:
  Here's my Dompdf class:</p>
  
  <pre><code>/**
   * @package dompdf
   * @link    http://dompdf.github.com/
   * @author  Benj Carson &lt;benjcarson@digitaljunkies.ca&gt;
   * @author  Fabien Ménager &lt;fabien.menager@gmail.com&gt;
   * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
   */
  namespace Dompdf;
  
  use DOMDocument;
  use DOMNode;
  use Dompdf\Adapter\CPDF;
  use DOMXPath;
  use Dompdf\Frame\Factory;
  use Dompdf\Frame\FrameTree;
  use HTML5_Tokenizer;
  use HTML5_TreeBuilder;
  use Dompdf\Image\Cache;
  use Dompdf\Renderer\ListBullet;
  use Dompdf\Css\Stylesheet;
  </code></pre>
  
  <p>And the  autoload file:</p>
  
  <pre><code>&lt;?php
  /**
   * @package dompdf
   * @link    http://dompdf.github.com/
   * @author  Benj Carson &lt;benjcarson@digitaljunkies.ca&gt;
   * @author  Fabien Ménager &lt;fabien.menager@gmail.com&gt;
   * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
   */
  
  /**
   * Dompdf autoload function
   *
   * If you have an existing autoload function, add a call to this function
   * from your existing __autoload() implementation.
   *
   * @param string $class
   */
  
  require_once __DIR__ . '/lib/html5lib/Parser.php';
  require_once __DIR__ . '/lib/php-font-lib/src/FontLib/Autoloader.php';
  require_once __DIR__ . '/lib/php-svg-lib/src/autoload.php';
  
  /*
   * New PHP 5.3.0 namespaced autoloader
   */
  require_once __DIR__ . '/src/Autoloader.php';
  
  Dompdf\Autoloader::register();
  </code></pre>