Manuel PHP
Précédent
Suivant
pdf_open_memory_image() prend comme argument une image créée avec les fonctions PHP, et la rend disponible pour le document PDF.
La fonction retourne un identifiant PDF d 'image.
Exemple 1.
Inclusion d 'une image mémoire
?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(), pdf_open_jpeg(), pdf_open_gif() et pdf_place_image().
Précédent
Sommaire
Suivant
Niveau supérieur