Hi, How to create a PDF from a html?? What class can I use for this?? Thank you -- Pedro C. Valentini pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org +55 (21) 8708-8035
Hi Pedro On 5/18/05, Pedro Valentini <pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org> wrote:> Hi, > How to create a PDF from a html?? > What class can I use for this??I do not know of any utils in Ruby to do this, but the solution that we use here at work is a perl script called ''html2ps'': http://user.it.uu.se/~jan/html2ps.html. We then use ps2pdf from the standard ghostscript install to convert the postscript file to a PDF. Hope that gives you a place to start. Dave -- Dave Goodlad dgoodlad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or dave-eHfbeeWWzZOw5LPnMra/2Q@public.gmane.org http://david.goodlad.ca/
Pedro Valentini wrote:> How to create a PDF from a html?? > What class can I use for this??The wiki contains some info[1] on generating PDFs from within Rails. One of the methods listed makes use of HTMLDOC[2], which consumes HTML and produces PDFs files(among other formats). [1] http://wiki.rubyonrails.com/rails/show/HowtoGeneratePDFs [2] http://www.htmldoc.org/ -- Lee
Hi Dave, I found http://rubyforge.org/projects/ruby-pdf/ but not found informations about it. I will keep looking for. Pedro David Goodlad escreveu:>Hi Pedro > >On 5/18/05, Pedro Valentini <pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org> wrote: > > >>Hi, >>How to create a PDF from a html?? >>What class can I use for this?? >> >> > >I do not know of any utils in Ruby to do this, but the solution that >we use here at work is a perl script called ''html2ps'': >http://user.it.uu.se/~jan/html2ps.html. We then use ps2pdf from the >standard ghostscript install to convert the postscript file to a PDF. >Hope that gives you a place to start. > >Dave > > >-- Pedro C. Valentini pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org +55 (21) 8708-8035
On 5/18/05, Pedro Valentini <pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org> wrote:> Hi Dave, > > I found http://rubyforge.org/projects/ruby-pdf/ but not found > informations about it. > I will keep looking for. > > PedroCheck the links Lee posted - that''ll give you what you need: http://wiki.rubyonrails.com/rails/show/HowtoGeneratePDFs -- sam http://www.magpiebrain.com/