Results 1 to 6 of 6
-
08-24-2014, 08:57 AM #1Web Hosting Master
- 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
-
08-24-2014, 09:12 AM #2WHT Addict
- 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
-
08-24-2014, 09:18 AM #3WHT Addict
- 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
-
08-25-2014, 12:47 PM #4Junior Guru Wannabe
- Join Date
- Aug 2014
- Posts
- 30
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
-
08-28-2014, 05:27 AM #5AWS Developer GCP AZURE Devops
- Join Date
- Dec 2002
- Location
- India
- Posts
- 1,433
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
-
01-27-2016, 02:06 AM #6New Member
- Join Date
- Jan 2016
- Posts
- 1
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
-
Generate .key from certificate file
By 3FRSB in forum Hosting Security and TechnologyReplies: 5Last Post: 12-03-2013, 11:08 PM -
How to generate SSL Key, CSR and Self-signed Certificate (SSR) in Linux Apache
By NetShop ISP in forum Hosting Security and Technology TutorialsReplies: 3Last Post: 10-30-2013, 01:10 AM -
Auto Generate serial no using PHP
By maddie88 in forum Programming DiscussionReplies: 6Last Post: 06-25-2010, 02:07 AM -
PHP/MySQL Programming - 3+ Years of Experience - No Payment Until Project Completion
By HBZSoftware in forum Employment / Job RequestsReplies: 0Last Post: 09-24-2008, 03:33 AM -
how do I generate a certificate for mail.mydomain.com?
By kurtk in forum VPS HostingReplies: 5Last Post: 09-08-2007, 12:34 AM