PDF_execute_image

(PHP3 >= 3.0.7, 4.0b2 - 4.0b4 only)

PDF_execute_image -- Places a stored image on the page

Description

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

The 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.

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

Example 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);
?>