http://qs321.pair.com?node_id=659226

Duke_Of_Perl has asked for the wisdom of the Perl Monks concerning the following question:

I am creating personalized score sheets on my website and would like to give the user the ability to download them. I would like to put the score sheets into a PDF or something equivalent. Do you have any suggestions on how I can get my score sheets into a PDF. I have read about PDF::API2 - is this the way to go or is there something better. Thanks.

Replies are listed 'Best First'.
Re: PDF or equivalent
by marto (Cardinal) on Dec 27, 2007 at 18:03 UTC
    Hi Duke_Of_Perl,

    You could start by having a look at PDF::Reuse, create a PDF 'template' and customize its contents based on users scores/stats.

    Hope this helps

    Martin
Re: PDF or equivalent
by dragonchild (Archbishop) on Dec 27, 2007 at 19:33 UTC
    A fourth option is PDF::Template

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
Re: PDF or equivalent
by traveler (Parson) on Dec 27, 2007 at 19:31 UTC
    If you have already coreated the scoresheets in HTML, try PDF::FromHTML. It will render the HTML as a PDF (and related tools can do more). There is also a command-line wrapper for it that comes with it.
Re: PDF or equivalent
by starX (Chaplain) on Dec 27, 2007 at 19:35 UTC
    I've used PDF::API2::Simple for quick and dirty PDF output. Seems to work pretty well so far.
Re: PDF or equivalent
by jrsimmon (Hermit) on Dec 27, 2007 at 18:39 UTC
    Duke of Perl, I use ghostscript to convert postscript files to pdf. I've been using this tool for about a year now, converting between 2 and 10 reports daily. It works quite well.