title: error in pdf image using dompdf
body: <p>I have to display a logo in every page of a generated PDF.  Though it works fine in the local system, it throws following exception in the server:</p>
  
  <pre><code>Fatal error: Uncaught exception 'PDFlibException' with message 'Handle parameter or option of type 'image' has bad value 0' in /var/www/dev/subdomains/rfqms/httpdocs/sprintnineteen/system/plugins/dompdf/include/pdflib_adapter.cls.php:664 Stack trace: #0 /var/www/dev/subdomains/rfqms/httpdocs/sprintnineteen/system/plugins/dompdf/include/pdflib_adapter.cls.php(664): PDFlib-&gt;fit_image(0, 30, 746, 'boxsize={86 43}...') #1 /var/www/dev/subdomains/rfqms/httpdocs/sprintnineteen/system/plugins/dompdf/include/php_evaluator.cls.php(66) : eval()'d code(16): PDFLib_Adapter-&gt;image('http://rfqms.de...', 'jpg', 30, 3, 86.4, 43.2) #2 /var/www/dev/subdomains/rfqms/httpdocs/sprintnineteen/system/plugins/dompdf/include/php_evaluator.cls.php(66): eval() #3 /var/www/dev/subdomains/rfqms/httpdocs/sprintnineteen/system/plugins/dompdf/include/php_evaluator.cls.php(70): PHP_Evaluator-&gt;evaluate('??//$base_img_u...') #4 /var/www/dev/subdomains/rfqms/httpdocs/sprintnineteen/system/plugins/dompdf/include/renderer.cls.php(180): PHP_Evaluator-&gt;render(O in /var/www/dev/subdomains/rfqms/httpdocs/sprintnineteen/system/plugins/dompdf/include/pdflib_adapter.cls.php on line 664
  </code></pre>
  
  <p>After some analysis I found that in local it uses <code>cpdf_adapter.cls.php</code> for image, where as in server it uses <code>pdflib_adapter.cls.php</code> for image. </p>
  
  <p>I even tried for all the types of images according to:</p>
  
  <pre><code>pdfLib tutorial Version 8.0.2 ---page # 166--- Inline images are only supported for imagetype=ccitt, jpeg, and raw. For other image types the inline option will silently be ignored.
  </code></pre>
  
  <p>So, what is the problem that leads to this exception? </p>
  
  <p><strong>some additional info:</strong> </p>
  
  <ul>
  <li>local PHP Version 5.3.0 </li>
  <li>server PHP Version 5.2.16</li>
  <li>dompdf version 0.5.2 </li>
  <li>DOMPDF_TEMP_DIR has r/w/e permission</li>
  <li>local machine is windows vista </li>
  <li>server machine is linux</li>
  </ul>