note 22976 added to function.pdf-continue-text
| From: | npoole at binary dot net | Date: | Fri, 05 Jul 2002 18:34:31 +0000 |
| Subject: | note 22976 added to function.pdf-continue-text | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32645@lists.php.net to get a copy of this message | ||
This is how I wrap text in a PDF file built from database content...
$foo = mysql_result($results,0,"foo");
$foo = wordwrap($foo,72,"|");
$Arr = explode("|",$foo);
$i = 0;
while ($Arr[$i] != "") {
pdf_continue_text($pdf,$Arr[$i]);
$i++;
}
Someone mentioned to me (and rightfully so) that this may be flawed if you have 2 blank lines, and
then more text in the variable. Use it for what you will though, you may find it (or an alteration
of it) useful.
--
http://www.php.net/manual/en/function.pdf-continue-text.php
http://master.php.net/manage/user-notes.php?action=edit+22976
http://master.php.net/manage/user-notes.php?action=delete+22976
http://master.php.net/manage/user-notes.php?action=reject+22976