Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://189977]
Approved by scain
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-10-06 23:10 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (29 votes). Check out past polls.