Forum Moderators: coopster
Try googling class.pdf.php and class.Cezpdf.php
I used them both and found it much easier than trying to install php's pdf module. The class makes it really easy to add images and tables as well to better format your stuff.
==> Sample:
// Make a new pdf object
$obj_Pdf =& new Cezpdf();
// Set justification vars
$aStr_CenterJustification = array('justification' => 'center');
$obj_Pdf->selectFont('fonts/Helvetica.afm'); // Set font
$obj_Pdf->setLineStyle(1); // Set Line Style
$obj_Pdf->setColor(0,0,0);
// Set the Y-cordPage where the data is to be placed
$obj_Pdf->ezSetY(760);
// Page Content
$obj_Pdf->ezText("<b>Hello World</b>", 10, $aStr_CenterJustification);
// Collect output and write it to newly created pdf file.
$str_PdfCode = $obj_Pdf->ezOutput();
// Write it to a file
$fp=fopen("test_file.pdf",'w');
fwrite($fp,$str_PdfCode);
fclose($fp);
Hope that helps ya a bit!
M.Cold