PHP : Function Reference : PDF Functions : PDF_open_memory_image
Examples ( Source code ) » PDF_open_memory_image
<?
//--------
$im = ImageCreate(100, 100);
$pim = pdf_open_memory_image($pdf, $im);
//---
?>
christian
under the Win32 platform, the function is _not_ implemented on PHP < 4.0.5 !
leela
note that in PHP 4.2.2 and PDF_lib 4.0.1 this function does not support more than 256 colors (only GD 1.x it seems).
WORKS:
$im = ImageCreate(100, 100);
$pim = pdf_open_memory_image($pdf, $im);
DOES NOT WORK:
$im = ImageCreateTrueColor(100, 100);
$pim = pdf_open_memory_image($pdf, $im);
DOES NOT WORK:
$im = ImageCreateFromJPEG("file.jpg");
$pim = pdf_open_memory_image($pdf, $im);
christian
not implemented in 4.0.5-Win32 yet, too - although Rasmus himself promised so in the Win32 mailing list ;-) scnr
so maybe in 4.0.6 ...
bob
I'm running PHP Version 4.0.6 on Win2000 and I also get a:
Warning: pdf_open_memory_image() is not supported in this PHP build
|