in reply to PDF and Perl

You can use: I think that it's enough. I use htmldoc directly for producing print view of my documents which created as HTML pages. It's very useful, power and easy using tool. But it has some disadvantages, of course. If you call this programm like this:
open (HTMLDOC, "|htmldoc -f PDF --webpage") or die $!; ... close HTMLDOC or die $!;
and if there is a some error or warning (too much large table, for example), pipe is closed immediate and return no error code or message. It's a bug of programm and I spent a lot of time for finding this problem. And the latest version does not currently support stylesheets.
      
--------------------------------
SV* sv_bless(SV* sv, HV* stash);