Creating PDF files from your Rails templates

Just posted a little how-to about creating PDF files directly from Rails
templates. Thought you all would enjoy it.

http://sublog.subimage.com/articles/2007/05/29/html-css-to-pdf-using-ruby-on-rails

Cheers.


seth at subimage interactive

http://www.subimage.com
http://sublog.subimage.com

http://www.getcashboard.com
http://dev.subimage.com/projects/substruct

Dude, sweet. I’m not anywhere good enough to implement that yet, but
it’s definitely on my “to learn” list now. Thanks for your efforts.

It’s actually quite easy. Download the files, include them in you rails
app,
and call 1 line of ruby code :wink:

On 5/29/07, Sean C. [email protected] wrote:

seth at subimage interactive

http://www.subimage.com
http://sublog.subimage.com

http://www.getcashboard.com
http://dev.subimage.com/projects/substruct

hi, this is totally kicka**!

thanks for sharing.

btw, confused about the princexml part. if this gets installed on a
server, and i allow people to export their recipe in pdf format, i need
to buy the license correct?

thanks

Subimage Interactive wrote:

Just posted a little how-to about creating PDF files directly from Rails
templates. Thought you all would enjoy it.

http://sublog.subimage.com/articles/2007/05/29/html-css-to-pdf-using-ruby-on-rails

Cheers.


seth at subimage interactive

http://www.subimage.com
http://sublog.subimage.com

http://www.getcashboard.com
http://dev.subimage.com/projects/substruct

Seth,

Thanks! This is great and will be very useful. PDF is one of those
things I had been putting off.

In case it is helpful for anyone else, I wrote up the installation
steps and how I needed to modify it for use.
http://www.nullislove.com/2007/05/30/easy-pdfs-from-rails/

(To mixplate: The Prince license is here:
http://www.princexml.com/license/
My understanding is that it’s free for non-commercial use. $495 for a
single computer to use for commercial purposes. $3,800 to put it on a
server for anyone to use.)

Thanks again,
Kevin S.

Seth,

Great stuff, I’ll have to try this out.

I’ve bee looking to do exactly this for over a year!

Cool take on it. A plugin might be nice to see as you suggested.

Post a comment on the blog with the link so people can check out your
write-up too! :wink:

On 5/30/07, Kevin S. [email protected] wrote:

seth at subimage interactive

http://www.subimage.com
http://sublog.subimage.com

http://www.getcashboard.com
http://dev.subimage.com/projects/substruct

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs