html 2 pdf

D

David Southwell

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
 
M

M. Edward (Ed) Borasky

G

Gregory Brown

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

This would probably work pretty good. I've done it before. A ruby
wrapper for this would be most appreciated, if anyone is looking for a
project!
(http://search.cpan.org/~mkfrankl/HTML-HTMLDoc-0.10/). Or you could
build something out of "hpricot" and "pdf-writer".

If you do this, I suggest using Ruport instead of PDF::Writer for your
PDF stuff. Of course, Ruport just wraps PDF::Writer, but it fixes
some bugs (thanks to Austin Ziegler) and adds some higher level
features and helps wrap the formatting code.

Some relevant docs if that's feasible for you:

http://rubyreports.org/cheatsheets/formatting.html
http://ruportbook.com/printable_documents.html
http://ruportbook.com/integration.html#pdf_writer_proxy
http://ruportbook.com/renderer_logic.html
 
J

John Joyce

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.
 
R

Ryan Davis

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.

I have one that only works on OSX, but it works well. Lemme know if
you want it and I'll try to dig it up.
 
T

Tiffany Sonny

I want it:)

-----Original Message-----
From: Ryan Davis [mailto:[email protected]]=20
Sent: Friday, July 20, 2007 2:00 PM
To: ruby-talk ML
Subject: Re: html 2 pdf


IIs there a gem for converting html to pdf?

I need to build a routine to step through a website and create a =20
pdf from the
downloaded pages.

I have one that only works on OSX, but it works well. Lemme know if =20
you want it and I'll try to dig it up.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,311
Members
47,986
Latest member
ColbyG935

Latest Threads

Top