SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    check box in Pdf in PHP using fpdf

    I am trying to retrieve the data from database and put in pdf using FPDF .Its okay for text box but I am not sure how to do check box or radio button.Can someone Please help me.Thanks in Advance.

  2. #2
    SitePoint Addict
    Join Date
    Apr 2011
    Posts
    265
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    To create easily PDF documents with PHP, you can use the "dompdf" class. It is free, you can find it on the net.
    This class converts HTML document in PDF. So, just create your document with html code as you want, than apply the dompdf class.
    Free: Web Programming Courses HTML, CSS, Flash
    Web Programming: AJAX Course and PHP-MySQL Course video Lessons
    Good JavaScript and jQuery course for beginners

  3. #3
    SitePoint Member
    Join Date
    Nov 2011
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    But its not html document it has php code. ?I am not sure if I understand it correct.Thanks for the help.

    Quote Originally Posted by MarPlo View Post
    Hi,
    To create easily PDF documents with PHP, you can use the "dompdf" class. It is free, you can find it on the net.
    This class converts HTML document in PDF. So, just create your document with html code as you want, than apply the dompdf class.

  4. #4
    SitePoint Addict
    Join Date
    Apr 2011
    Posts
    265
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    With php you can generate html code. You can make the page you want for pdf with html, then use dompdf to create the pdf document.
    See the examples /demo from dompdf class, or on this page: dompdf.
    Free: Web Programming Courses HTML, CSS, Flash
    Web Programming: AJAX Course and PHP-MySQL Course video Lessons
    Good JavaScript and jQuery course for beginners


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •