ROZ pdf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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();
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux