pdf_open_memory_image prend l'image image créée par PHP avec les fonctions d'images, et l'intègre dans l'objet PDF pdf_object . Cette fonction retourne une ressource d'image PDF.
<?php$im = ImageCreate(100, 100);$col = ImageColorAllocate($im, 80, 45, 190);ImageFill($im, 10, 10, $col);$pim = pdf_open_memory_image($pdf, $im);ImageDestroy($im);pdf_place_image($pdf, $pim, 100, 100, 1);pdf_close_image($pdf, $pim);?>
Voir aussi pdf_close_image et pdf_place_image .