AddGBFont(); $pdf1->AddPage(); $pdf1->SetFont('GB', '', 10); $txt = <<Write(10, iconv("UTF-8", "gbk", $txt)); $pdf1->Output('F', 'test.pdf');