tags:

views:

872

answers:

5

I need to convert some HTML reports into PDF using Perl. What are the best CPAN modules for the job?

+1  A: 

I've used PDF::API2 to create PDF reports with great success.

friedo
+1  A: 

It depends on exactly what you need to do, but I'd probably look at Template::Extract and PDF::Template.

David Dorward
+2  A: 

I hope PDF::FromHTML may be of help.

Alan Haggai Alavi
+1  A: 

PinceXML

That doesn't answer you question in the sense of using Perl, but as far as I know that is the best HTML to PDF converter available.

Adam Flott
I've heard good things about it too. It does document using it from Perl ( http://www.princexml.com/doc/6.0/perl/ ) but that just boils down to "Use STDIN/SDOUT".
David Dorward
+1  A: 

HTML::HTMLDoc uses the underlying htmldoc C library which is built to do just this. And it's pretty fast too.

mpeters