Reviews by

cpanratings
 

RSS

HTML-HTMLDoc (0.07) **

I would not recommend this module. I spent quite a lot time on it and I couldn't get it working.

The software users manual of HTMLDOC contains a far easier way to call HTMLDOC from perl. See chapter 5 paragraph 3 (www.easysw.com/htmldoc/htmldoc.html#6_3)

Example: small perl program underneath (*nix) will take your html file and display it as a pdf in browser:

#!/usr/bin/perl
sub topdf {
my $filename = shift;
select(STDOUT); $| = 1;
print "Content-Type: application/pdf\n\n";
system "/usr/local/bin/htmldoc -t pdf --quiet --webpage $filename";
}
&topdf("/path/to/your/htmlfile.htm");