title: cannot generate pdf with tcpdf
body: <p>on my site a user can print (in pdf) the nda he accepted
  for some reason i cannot display the pdf</p>
  
  <p>here the logic</p>
  
  <p>first rewrite the rule</p>
  
  <pre><code>.htaccess
  RewriteRule ^nda/?$ ndapdf.php?useSessionUser=1 [L]
  </code></pre>
  
  <p>then the php</p>
  
  <pre><code>&lt;?php
  
  $html = file_get_contents("/lib/nda.txt");
  $html = str_replace("##user##", $_SESSION["currentUser"]);
  $html = str_replace("##date##", date("Y-m-d h:i:s"));
  
  require("/lib/web/tcpdf/config/lang/eng.php");
  require("/lib/web/tcpdf/tcpdf.php");
  $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, "UTF-8", false);
  $pdf-&gt;SetCreator("mysite");
  $pdf-&gt;SetAuthor("author_name");
  $pdf-&gt;SetTitle("NDA");
  $pdf-&gt;SetSubject("Accepted NDA");
  
  $pdf-&gt;setHeaderFont(Array(PDF_FONT_NAME_MAIN, "", PDF_FONT_SIZE_MAIN));
  $pdf-&gt;setFooterFont(Array(PDF_FONT_NAME_DATA, "", PDF_FONT_SIZE_DATA));
  
  $pdf-&gt;SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
  $pdf-&gt;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
  $pdf-&gt;setLanguageArray(array("w_page" =&gt; ""));
  $fontname = $p-&gt;addTTFfont("/fonts/AveriaSans-light.ttf", "TrueTypeUnicode", "", 32);
  $pdf-&gt;SetFont("arial", "", 10);
  $pdf-&gt;AddPage();
  $pdf-&gt;writeHTML($html, true, false, true, false, "");
  $pdf-&gt;lastPage();
  
  $pdf-&gt;Output("/home/comp/pdf/nda/$currentUser.pdf", "F");
  header("Content-Type: application/pdf\n");
  read("/home/comp/pdf/nda/$currentUser.pdf");
  </code></pre>
  
  <p>i get: </p>
  
  <p><strong>"TCPDF ERROR: Could not include font definition file: AveriaSans-light"</strong></p>
  
  <p>the font is: ll /fonts/</p>
  
  <pre><code>-rw-r--r-- 1 root root  85084 2011-11-02 17:51 AveriaSans-Light.ttf
  </code></pre>
  
  <p>thanks</p>