Forum und email

PDF_open_gif

(PHP 4, PECL pdflib:1.0-2.1.3)

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

<?php
$im = PDF_open_gif($pdf, "test.gif");
pdf_place_image($pdf, $im, 100, 100, 1);
pdf_close_image($pdf, $im);
?>
      

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