Answers for "how to center fpdf"

1

how to center fpdf

// Set font
$pdf->SetFont('Arial','B',16);
// Move to 8 cm to the right
$pdf->Cell(80);
// Centered text in a framed 20*10 mm cell and line break
$pdf->Cell(20,10,'Title',1,1,'C');
Posted by: Guest on September-11-2020

Browse Popular Code Answers by Language