pdf_execute_image

(PHP 3>= 3.0.7)

pdf_execute_image -- Places a stored image on the page

Popis

void pdf_execute_image ( int pdf document, int image, double x-coor, double y-coor, double scale)

Funkce pdf_execute_image() function displays an image that has been put in the PDF file with the pdf_put_image() function on the current page at the given coordinates.

The image can be scaled while displaying it. A scale of 1.0 will show the image in the original size.

Poznßmka: This function has become meaningless with version 2.01 of pdflib. It will just output a warning.

P°φklad 1. Multiple show of an image

<?php
$im = ImageCreate(100, 100);
$col1 = ImageColorAllocate($im, 80, 45, 190);
ImageFill($im, 10, 10, $col1);
$pim = pdf_open_memory_image($pdf, $im);
pdf_put_image($pdf, $pim);
pdf_execute_image($pdf, $pim, 100, 100, 1);
pdf_execute_image($pdf, $pim, 200, 200, 2);
pdf_close_image($pdf, $pim);
?>