SetThaiFont(); $pdf->AddFont('angsa','','angsa.php'); $pdf->AddPage(); $pdf->Ln(0); $pdf->Image('certificate.jpg',1,1,296,209); /* col,row,width,height */ $pdf->SetTextColor(128,0,128); $pdf->SetFont('AngsanaNew','',16); $pdf->Ln(2); $pdf->Cell(280,0,"สำเนาเกียรติบัตรเลขที่: ssk1-$no-2553",0,0,'R'); $pdf->Ln(67); $pdf->SetFont('AngsanaNew','B',30); $pdf->Cell(0,0,"$sch",0,0,'C'); $pdf->Ln(11); $pdf->SetFont('AngsanaNew','B',24); $pdf->Cell(0,0,"$reg",0,0,'C'); $pdf->Ln(11); $pdf->SetFont('AngsanaNew','B',24); $pdf->Cell(0,0,"$award $act",0,0,'C'); $pdf->Ln(10); $pdf->SetFont('AngsanaNew','B',24); $pdf->Cell(0,0,"$grp $level",0,0,'C'); //$pdf->Image('chinpat.jpg',137,178,25,12); $pdf->Output(); ?>