how to convert html to pdf in php using fpdf?

Posted by Paidboom - 5 months ago

how to convert html to pdf in php using fpdf

This class allows to convert HTML to PDF. It was designed to export my blog entries to PDFs. Also Available Main fpdf features are:

  • provides for images simple provides for tables document header is
  • created with publishing date, article title, URL, company document
  • footer is created with current & total pagination numbers built-in
  • provides for iconv (character conversions)

    require('lib/fpdf/fpdf.php');
    $pdf = new FPDF();
    $pdf->AddPage();
    $pdf->SetFont('Arial','B',16);
    $pdf->Cell(40,10,'Welcome To Pakainfo!');
    $pdf->Output();