PHP Manual
Prev |  | Next

# PDF_open_gif

PDF_open_gif -- Opens a GIF image

## Description

`int pdf_open_gif`(int pdf document, string filename);

The PDF_open_gif() function opens an image stored in the file with the name `filename`. The format of the image has to be gif. The function returns a pdf image identifier.

Example 1. Including a gif image

      1
      2 <?php
      3 $im = PDF_open_gif($pdf, "test.gif");
      4 pdf_place_image($pdf, $im, 100, 100, 1);
      5 pdf_close_image($pdf, $im);
      6 ?>
      7

See also PDF_close_image(), PDF_open_jpeg(), PDF_open_memory_image(), PDF_execute_image(), PDF_place_image(), PDF_put_image().

Prev | Home | Next
PDF_set_duration | Up | PDF_open_memory_image