require('fpdf.php');
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',12);
$pdf->Cell(40,10,'Header 1',1,0,'C');
$pdf->Cell(40,10,'Header 2',1,0,'C');
$pdf->Cell(40,10,'Header 3',1,0,'C');
$pdf->Cell(40,10,'Header 4',1,1,'C');
$pdf->SetFont('Arial','',12);
$pdf->Cell(40,10,'Row 1 Col 1',1,0,'C');
$pdf->Cell(40,10,'Row 1 Col 2',1,0,'C');
$pdf->Cell(40,10,'Row 1 Col 3',1,0,'C');
$pdf->Cell(40,10,'Row 1 Col 4',1,1,'C');
$pdf->Rect(20, 60, 170, 20);
$pdf->SetXY(25, 65);
$pdf->Cell(0, 0, 'Fill in data here');
$pdf->Output();
//or
// $pdf->Output('F', 'filename.pdf'); // save the pdf as 'filename.pdf' in the server.