Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2002
    Location
    New York
    Posts
    791

    Using PHP generate a printable certificate of completion

    I have an online php based website where people login to view training videos. I want to enable someone to click a button and print off a PDF of a certificate of completion. The certificate will pull the users name and a date as well as some other values from a mysql database.

    I know this can be done with fpdf.org but I am looking for a tutorial.
    I am wondering if anyone as or knows where I may find a tutorial on how to make a printable certificate of completion in PHP. My google search has not comeup with anything and I would think this would be a common script snippet.

    Thanks
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    just a programmer

  2. #2
    Join Date
    Oct 2013
    Location
    United Kingdom
    Posts
    115
    Have a look at: http://phptopdf.com/. It should help you with your issue. If you have problems trying to get it running, just contact me and I'll help you out.
    First Choice Hosting - Premium Hosting at an Affordable Price
    Quality Shared Hosting & VPS'
    Supporting all versions of PHP!
    http://firstchoicehosting.co.uk - Don't miss a great opportunity

  3. #3
    Join Date
    Jun 2011
    Location
    Rishikesh, India
    Posts
    171
    Hi,
    Used mpdf -> http://www.mpdf1.com/mpdf/index.php
    Here is hello world example ..

    http://mpdf1.com/manual/index.php?tid=106

    Hope this is help you ..
    ┌█ AdarshHost :: cPanel Powered by Cloud Server Be cPanel Reseller@$0.95
    Premium SSD-Cached Shared/Reseller cPanel Hosting : Since 2011
    CloudLinux - CDN - Site Builder - Softaculous - Jet Backup!
    └█ Payment Methods: PayPal, 2Checkout, NEFT, IMPS

  4. #4
    You don't necessarily need to print out to PDF using PHP, some browsers (Chrome specifically) already provide the capability to print to PDF.

    One option might be to create a certificate template using html/images/css, populate the needed values and then utilise a css print media query to only display the desired content when the page is printed.

    There are plenty of tutorials just search for "print style sheet". I'd provide you a link to a tutorial but as a new forum member I'm restricted.

    Alex

  5. #5
    Join Date
    Dec 2002
    Location
    India
    Posts
    1,433
    Quote Originally Posted by mjfroggy View Post
    ...............

    I know this can be done with fpdf.org but I am looking for a tutorial.
    ............
    Have you tried the tutorials mentioned in the same website (http://www.fpdf.org/en/tutorial/index.php)
    Chris, Developer/Programmer,
    https://www.chrisranjana.com/
    Php laravel developers, Node Python developers,
    AWS Certified | Python developers | Nodejs Developers | Devops

  6. #6
    Quote Originally Posted by mjfroggy View Post
    I have an online php based website where people login to view training videos. I want to enable someone to click a button and print off a PDF of a certificate of completion. The certificate will pull the users name and a date as well as some other values from a mysql database.

    I know this can be done with fpdf.org but I am looking for a tutorial.
    I am wondering if anyone as or knows where I may find a tutorial on how to make a printable certificate of completion in PHP. My google search has not comeup with anything and I would think this would be a common script snippet.

    Thanks
    hello,

    I also need to work on the same that you have mentioned here. Were you able to do it? If so, would you mind sharing it with me. I tried doing it myself and also searching for a solution but I was not successful. I need it asap and I would be very grateful.

    Thanks

Similar Threads

  1. Generate .key from certificate file
    By 3FRSB in forum Hosting Security and Technology
    Replies: 5
    Last Post: 12-03-2013, 11:08 PM
  2. How to generate SSL Key, CSR and Self-signed Certificate (SSR) in Linux Apache
    By NetShop ISP in forum Hosting Security and Technology Tutorials
    Replies: 3
    Last Post: 10-30-2013, 01:10 AM
  3. Auto Generate serial no using PHP
    By maddie88 in forum Programming Discussion
    Replies: 6
    Last Post: 06-25-2010, 02:07 AM
  4. Replies: 0
    Last Post: 09-24-2008, 03:33 AM
  5. Replies: 5
    Last Post: 09-08-2007, 12:34 AM

Posting Permissions

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