Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

Generate a Certificate on a website



1:21 pm on Jul 7, 2009 (gmt 0)

5+ Year Member

Client wants to test people with a multiple choice test for which I will build a form. When the clients gets the answers right, we will send a passing notification to the client and then congratulate testee if they pass or to a try, try again page if they fail. The passing testee will be moved to a new page where they will be able to enter their name and generate a certificate that will print. Can anyone give me some help with the nuts and bolts of making this thing work or do you have some examples of something like this I can take a look at?


6:04 pm on Jul 7, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

First guess, using the powerful compositing capabilities of ImageMagick?

Create/scan your blank cert.

User inputs name, etc.

Using imageMagick you create an image out of the selected type (ImageMagick supports truetype, fonts, etc.)

Calculate the size of the name and date type "images."

Position them accordingly in a copy of the cert using composite methods in ImageMagick.

Save the file, or just output to the browser as content-type:image/jpg to save disk space.

Similar approaches can be done automating PDF for higher resolution, but I've never done that.

Requires ImageMagick be installed and the perl interface perlMagick, or even Imagick for PHP.

ImageMagick.org [imagemagick.org]

[edited by: rocknbil at 6:06 pm (utc) on July 7, 2009]


6:06 pm on Jul 7, 2009 (gmt 0)

5+ Year Member

Thanks Rockn - I'll take a look.

Featured Threads

Hot Threads This Week

Hot Threads This Month