Russian Ukraine English
Catalog RSS


pdf_open_image_file

(PHP 4 >= 4.0RC2)

pdf_open_image_file -- Reads an image from a file

Description

int pdf_open_image_file (int PDF-document, string format, string filename)

The function pdf_open_image_file() reads an image of format format from the file filename. Possible formats are 'png', 'tiff', 'jpeg' and 'gif'. The function returns a pdf image identifier.

Example 1. Inserting an image


<?php $pim = pdf_open_image_file($pdf, "png", "picture.png"); pdf_place_image($pdf, $pim, 100, 100, 1); pdf_close_image($pdf, $pim); ?>      

See also pdf_close_image(), pdf_open_jpeg(), pdf_open_gif(), pdf_open_tiff(), pdf_open_png(), pdf_execute_image(), pdf_place_image(), pdf_put_image().

Led