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++;
}
}
?>