Create PDF file in PHP

How to Create pdf file in php

1. Before creating a pdf file in php, first you have to download fpdf from
2. Its a php class that allows to create pdf file without using the pdf library
3. Below are the simple example for creating the pdf file :-

$pdf=new FPDF();
$pdf->Cell(100,30,'iWeb Tech Expert');
function Footer() {
$this->Image("logo.jpg", (8.5/2)-1.5, 9.8, 3, 1, "JPG", "");
} $pdf->Output();