FPDF is a library to handle the pdf files. FPDF stands for free pdf. It provides high level functions to generate the pdfs. FPDF does not require any support. It is
pure php library. You can download the library from this website http://www.fpdf.org/ . Please have a look a simple example.
<?php
require('fpdf.php');
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
?>
In above example, we need to create the object of FPDF class first then use the different functions for different operations. addPage is one of the function to
create a new page and SetFont for settings the text font, cell function useful to print the text on the page.
0 Comment(s)