Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Dynamic PDF files with Perl

by NeoYoda (Initiate)
on Aug 14, 2002 at 02:26 UTC ( #189977=perlquestion: print w/replies, xml ) Need Help??
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:

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://189977]
Approved by scain
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-12-12 22:35 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (340 votes). Check out past polls.