Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • FPDF class php

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 116
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: