note 86898 added to function.pdf-new
| From: | Justin at osu1 dot php dot net | Date: | Sun, 09 Nov 2008 20:36:13 +0000 |
| Subject: | note 86898 added to function.pdf-new | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146323@lists.php.net to get a copy of this message | ||
// create handle for new PDF document
$pdf = pdf_new();
// open a file
pdf_open_file($pdf, "test.pdf");
// start a new page (A4)
pdf_begin_page($pdf, 595, 842);
// get and use a font object
$arial = pdf_findfont($pdf, "Arial", "host", 1); pdf_setfont($pdf, $arial, 10);
// print text
pdf_show_xy($pdf, "There are more things in heaven and earth, Horatio,",50, 750);
pdf_show_xy($pdf, "than are dreamt of in your philosophy", 50,730);
// end page
pdf_end_page($pdf);
// close and save file
pdf_close($pdf);
----
Server IP: 64.71.164.2
Probable Submitter: 76.202.112.76
----
Manual Page -- http://www.php.net/manual/en/function.pdf-new.php
Edit -- https://master.php.net/note/edit/86898
Del: integrated -- https://master.php.net/note/delete/86898/integrated
Del: useless -- https://master.php.net/note/delete/86898/useless
Del: bad code -- https://master.php.net/note/delete/86898/bad+code
Del: spam -- https://master.php.net/note/delete/86898/spam
Del: non-english -- https://master.php.net/note/delete/86898/non-english
Del: in docs -- https://master.php.net/note/delete/86898/in+docs
Del: other reasons-- https://master.php.net/note/delete/86898
Reject -- https://master.php.net/note/reject/86898
Search -- https://master.php.net/manage/user-notes.php