homepage Welcome to WebmasterWorld Guest from 54.235.61.62
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
Generate a Certificate on a website
adcetera




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

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?

 

rocknbil




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

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]

adcetera




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

Thanks Rockn - I'll take a look.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved