diff --git a/billgen-API.php b/billgen-API.php index da27bdb..033d7a7 100644 --- a/billgen-API.php +++ b/billgen-API.php @@ -45,6 +45,7 @@ } else if(filter_input(INPUT_GET, 'text')) { $text=filter_input(INPUT_GET, 'text'); + $text=wordwrap($text,40,"\n",true); } $img = imagecreatefromjpeg('bill-ovl.jpg'); @@ -53,4 +54,4 @@ imagettftext($img, 18, 0, 30, 100, $clr,$font_path, $text); imagejpeg($img); imagedestroy($img); -?> \ No newline at end of file +?>