note 81422 added to function.pdf-create-pvf
| From: | NorbertBruder at osu1 dot php dot net | Date: | Wed, 27 Feb 2008 16:28:17 +0000 |
| Subject: | note 81422 added to function.pdf-create-pvf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-136529@lists.php.net to get a copy of this message | ||
<?php
$im = @ImageCreate (50, 100)
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "Test", $text_color);
ob_start(); //turn output buffering on
ImagePNG ($im); //create PNG
$img_buffer = ob_get_contents(); //get the PNG of the output
buffer
ob_end_clean(); //clear and turns off this output
buffering
pdf_create_pvf($pdf, "/pvf/image/image.png", $img_buffer, ""); //create a
named virtual read-only file
$img_id = pdf_load_image($pdf, "png", "/pvf/image/image.png", "");
//open the named virtual read-only file
pdf_place_image($pdf, $img_id, 50, 770, 1); //Places the image in the
PDF-file
?>
----
Server IP: 217.160.72.57
Probable Submitter: 217.6.201.210
----
Manual Page -- http://www.php.net/manual/en/function.pdf-create-pvf.php
Edit -- https://master.php.net/note/edit/81422
Del: integrated -- https://master.php.net/note/delete/81422/integrated
Del: useless -- https://master.php.net/note/delete/81422/useless
Del: bad code -- https://master.php.net/note/delete/81422/bad+code
Del: spam -- https://master.php.net/note/delete/81422/spam
Del: non-english -- https://master.php.net/note/delete/81422/non-english
Del: in docs -- https://master.php.net/note/delete/81422/in+docs
Del: other reasons-- https://master.php.net/note/delete/81422
Reject -- https://master.php.net/note/reject/81422
Search -- https://master.php.net/manage/user-notes.php