require('../chinese-unicode.php');
$pdf=new PDF_Unicode();
$pdf->Open();
$pdf->AddPage();
$pdf->AddUniCNShwFont('uni');
$pdf->SetFont('uni','',20);
$pdf->Write(10, "許功蓋伃彣");
$pdf->Ln();
$pdf->Cell (120, 10, "使用UTF8做為中文字編碼",1,0,"C");
$pdf->Ln();
$pdf->Output();
$pdf=new PDF_Unicode('p','mm','A4');用來指定紙張格式和單位,P:直式,L:橫式Cell(寬,高,"內容",框線,指標位置,"對齊方向",填滿,連結)用來畫格線,指標位置:0延伸至最右,1至下一行起點,2below