HTML-HTMLDoc reviews

cpanratings
 

RSS | Module Info | Add a review of HTML-HTMLDoc

HTML-HTMLDoc (0.10) *****

Despite not being touched for 6 years, this is a fabulous module for converting a HTML page to PDF. ++will use a lot. ;)

It has its limitations (such as ignoring CSS) and all, but handles tables and inserting headers, footers, background images nicely.

Jacinta Richardson - 2012-03-07T00:05:09 (permalink)

1 out of 1 found this review helpful. Was this review helpful to you?  Yes No

HTML-HTMLDoc (0.07) ***

I had problem running it from CGI.
My CGI doesn't assume the path for anything, including htmldoc.
So I had to modify the doc to set the path for htmldoc as /usr/local/bin/htmldoc. It took me few hours to figure it out from my application.

artist - 2004-05-05T09:25:50 (permalink)

1 out of 1 found this review helpful. Was this review helpful to you?  Yes No

HTML-HTMLDoc (0.07) ****

This module worked great for me. I was easily able to use it to generate a PDF file. I was also happy to see that that the documentation contained a tip to allow it work under mod_perl. Before I found this I made system calls to the 'htmldoc' binary. With this module I no longer have to bother with managing temporary files myself.

Mark Stosberg - 2004-04-08T19:53:01 (permalink)

1 out of 1 found this review helpful. Was this review helpful to you?  Yes No

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");

bart123 - 2004-04-04T11:29:43 (permalink)

2 out of 2 found this review helpful. Was this review helpful to you?  Yes No
1 hidden unhelpful review