http://www.perlmonks.org?node_id=189977

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

I am looking more for advice here... I need to take emails generated by my server, and output them to a nicely formatted PDF file. I have never done the "outputting to PDF" part of this before, so could anyone recommend the module that would work best for this? Thanks.

Replies are listed 'Best First'.
Re: Dynamic PDF files with Perl
by mp (Deacon) on Aug 14, 2002 at 03:01 UTC
Re: Dynamic PDF files with Perl
by screamingeagle (Curate) on Aug 14, 2002 at 05:05 UTC
Re: Dynamic PDF files with Perl
by George_Sherston (Vicar) on Aug 14, 2002 at 13:57 UTC
    Oddly enough I just spent the morning doing much the same thing. I have some on-the-fly html pages like this and I have to use the same data to create PDFs that look like this. I wrote some methods which, though in some respects slightly cronky, I found useful. An important feature which these examples don't demo is that the methods cope with the case where you need more than one page. You find below a sample script, and the module with the methods. Enjoy!

    § George Sherston
Re: Dynamic PDF files with Perl
by adrianh (Chancellor) on Aug 14, 2002 at 09:33 UTC

    You might find using htmldoc a simple solution if you've already got HTML versions of your document lying around. Source is GPL.

Re: Dynamic PDF files with Perl
by jujubee (Acolyte) on Aug 14, 2002 at 12:47 UTC
    Look into PDFlib: www.pdflib.com

    Thumbs up. Though, there is a small fee involved.
    It's made it extremely easy to output stuff in PDF.