note 29137 added to function.pdf-show-boxed
| From: | matt at rack1 dot php dot net | Date: | Tue, 04 Feb 2003 11:12:38 +0000 |
| Subject: | note 29137 added to function.pdf-show-boxed | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43373@lists.php.net to get a copy of this message | ||
note if you would rather resize the font than the textbox on the PDF you produce (i.e. if you need a
set layout) you could do something like:
while (pdf_show_boxed($pdfdoc, $txt, 220, 100, 180, 250, "left", "blind") >
1) {
$font--;
pdf_set_font($pdfdoc, "Courier", $font, "host");
}
pdf_show_boxed($pdfdoc,$txt,220,100,180,250,"left");
This will keep downsizing the font until all the text fits in the box you specify.
--
http://www.php.net/manual/en/function.pdf-show-boxed.php
http://master.php.net/manage/user-notes.php?action=edit+29137
http://master.php.net/manage/user-notes.php?action=delete+29137
http://master.php.net/manage/user-notes.php?action=reject+29137