From: John Joyce Date: 2007-07-21T01:18:43+09:00 Subject: Re: html 2 pdf On Jul 18, 2007, at 10:17 AM, M. Edward (Ed) Borasky wrote: > David Southwell wrote: >> Hi >> >> IIs there a gem for converting html to pdf? >> >> I need to build a routine to step through a website and create a >> pdf from the >> downloaded pages. >> >> Thanks in advance >> >> david Southwell >> >> >> > > If not, you could probably just shell out to the open source htmldoc > http://www.easysw.com/htmldoc/. There's a Perl interface you can learn > from, HTML-HTMLDoc > (http://search.cpan.org/~mkfrankl/HTML-HTMLDoc-0.10/). Or you could > build something out of "hpricot" and "pdf-writer". > > No Good. It doesn't even fully support HTML 4 ! And no support for stylesheets...? There must be other alternatives. OS X has built-in print to PDF (has had for many years) so there must be GNU tool to do it.