On Tue, 2004-02-24 at 15:34, Peter Scott wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Kevin Old) writes: > >On Tue, 2004-02-24 at 11:19, Peter Scott wrote: > >> I haven't used these modules, but they look like they'll do the > >> job for you: > >> > >> http://search.cpan.org/~mfrankl/HTML-HTMLDoc-0.07/lib/HTML/HTMLDoc.pm > >> http://search.cpan.org/~mfrankl/HTML-HTMLDoc-0.07/lib/HTML/HTMLDoc/PDF.pm > >
For the archives, here's who, what, when, where and why.tle faith, HTMLDoc http://www.easysw.com/htmldoc/ Download the tar.gz file and configure, make, make install (as root). >From the command line run: htmldoc -v --webpage -f cnn.pdf http://cnn.com Or via CPAN install HTML::HTMLDoc after installing htmldoc and use this perl script: #!/usr/bin/perl use warnings; use strict; use LWP::Simple; use HTML::HTMLDoc; my $htmldoc = new HTML::HTMLDoc(); $htmldoc->set_html_content(get "http://cnn.com"); my $pdf = $htmldoc->generate_pdf->to_file("cnn.pdf"); You can also convert it to Postscript if you want. Just change the file extension to ".ps". Thanks again to Peter for pointing out this extremely useful utility! Kevin -- Kevin Old <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>