Hi
I have php_pdf.dll enabled in php.ini.
I've downloaded this extension from pecl4win.php.net - php 5.1.1 (I'm using 
php-5.1.2-dev snapshot)
The extension is loaded. phpinfo() reports it:

      PDF Support  enabled
      PDFlib GmbH Version  5.0.3
      PECL Version  2.0.5
      Revision  $Revision: 1.144 $


I have also tried libpdf_php.dll from pdflib.com but I get the same error.
This is the code:
$pdf = pdf_new();
pdf_open_file($pdf, "");

$pimg = pdf_open_memory_image($pdf, $im);   <== LINE 52
pdf_begin_page($pdf, 595, 842);
pdf_add_outline($pdf, "Page 1");
pdf_place_image($pdf, $pimg, 0, 500, 1);
pdf_close_image($pdf, $pimg);
pdf_end_page($pdf);
pdf_close($pdf);
$buf = pdf_get_buffer($pdf);
$len = strlen($buf);
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=jpimage.pdf");
echo $buf;
pdf_delete($pdf);

$im is created with jpgraph and displays fine in the browser,

[12-Dec-2005 01:10:04] PHP Fatal error:  Call to undefined function 
pdf_open_memory_image() in C:\www\home\tests\image5g.php on line 52

What's the problem here ?

Best regards
holo

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to