pdf_open_image_file

(PHP 3 CVS only, PHP 4 >= 4.0.0)

pdf_open_image_file -- Reads an image from a file

Popis

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.

P°φklad 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);
?>

Viz takΘ pdf_close_image(), pdf_open_jpeg(), pdf_open_gif(), pdf_open_tiff(), pdf_open_png(), pdf_execute_image(), pdf_place_image(), pdf_put_image().