2008年9月12日 星期五

[PHP][FPDF]產生PDF


require('fpdf.php'); //引入fpdf類別檔
$pdf=new FPDF(); //產生PDF物件
$pdf->AddPage(); //新增一頁
$pdf->SetFont('Times','B',14); //設定字型
$pdf->Cell(50,20,'Hello World!'); //儲存格文字
$pdf->Output(); //產生PDF檔
?>

沒有留言: