PHP Manual
Prev |  | Next

# PDF_execute_image

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
      1
      2 <?php
      3 $im = ImageCreate(100, 100);
      4 $col1 = ImageColorAllocate($im, 80, 45, 190);
      5 ImageFill($im, 10, 10, $col1);
      6 $pim = PDF_open_memory_image($pdf, $im);
      7 pdf_put_image($pdf, $pim);
      8 pdf_execute_image($pdf, $pim, 100, 100, 1);
      9 pdf_execute_image($pdf, $pim, 200, 200, 2);
     10 pdf_close_image($pdf, $pim);
     11 ?>
     12

Prev | Home | Next
PDF_put_image | Up | pdf_add_annotation