pdf_open_png

(PHP 4 >= 4.0.0)

pdf_open_png --  Opens a PNG image

Popis

int pdf_open_png ( int pdf, string png_file)

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

Poznßmka: This function shouldn't be used anymore. Please use the function pdf_open_image_file() instead.

P°φklad 1. Including a PNG image

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

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