From: Tanner Burson Date: 2007-07-21T01:30:39+09:00 Subject: Re: html 2 pdf ------=_Part_48248_22780511.1184949037218 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/20/07, John Joyce wrote: > > > 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. Sure, but nothing I'm aware of that doesn't require a full browser renderer to work. The print to PDF feature as I understand it uses a modified print "driver" that converts the post script output into a PDF doc instead of sending it to a printer. This is a far cry from just taking an aribtrary html file and making it a PDF. -- ===Tanner Burson=== tanner.burson@gmail.com http://www.tannerburson.com ------=_Part_48248_22780511.1184949037218--