note 56716 added to function.pdf-continue-text

From: Date: Tue, 13 Sep 2005 10:59:39 +0000
Subject: note 56716 added to function.pdf-continue-text
Groups: php.notes 
Request: Send a blank email to php-notes+get-95106@lists.php.net to get a copy of this message
Shortest way to wordwrap in pdf_continue_text. There is no problem with new lines. Thnx to GTECHNICS.com... <? $text = $_POST['texfield']; ; $lines = explode("\n",$text); pdf_set_text_pos($pdfdoc,$x ,$y); foreach($lines as $line){ $foo = $line; $foo = wordwrap($foo,122,"|"); $Arrx = explode("|",$foo); $i = 0; while ($Arrx[$i] != "") { pdf_continue_text($pdfdoc,$Arrx[$i]); $i++; } } ?> ---- Manual Page -- http://www.php.net/manual/en/function.pdf-continue-text.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+56716 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56716&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56716&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56716&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56716&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56716&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56716&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+56716&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#95106) next »