ROZ pdf

From: Date: Thu, 20 Jul 2006 04:01:34 +0000
Subject: ROZ pdf
Groups: php.general 
Request: Send a blank email to php-general+get-239603@lists.php.net to get a copy of this message
Hi all, I am using EZpdf class to create pdf in mysql database . The Ezpdf class is open source tool for auto-creation of pdf in php , the link is http://sourceforge.net/projects/pdf-php I have the problem with tool , the pdf page is blank , eventhough have some data in my MySQL database . Anybody have been using the ROS tool successfully , please give me some guidance what that i have done wrong . Thanks Below is the code: error_reporting(E_ALL); require_once('../library/sql.php'); require_once('../library/class.ezpdf.php'); $pdf = &new Cezpdf(); $pdf->selectFont('../fonts/Helvetica'); $_db = dbconnect(); $result = $_db->queryDB("Select user_name from tbl_user"); $data = array(); while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) { $data [] = $row['user_name']; } $pdf->ezTable($data); echo print_r($pdf); if (isset($d) && $d) { $pdfcode = $pdf->output(1); $pdfcode = str_replace("\n", "\n<br>", htmlspecialchars($pdfcode)); echo '<html><body>'; echo trim($pdfcode); echo '</body></html>'; } else { $pdf->stream(); }

« previous php.general (#239603) next »