views:

94

answers:

3

After several Google searches, it appears that the way to create PDFs in Rails from HTML and CSS (versus a new markup language) is to use Prince.

With licensing at $3800 for my non-big-commercial app, I'm wondering if this is, in fact, consensus or people have an alternative they can share the whats and hows.

+4  A: 

You may check out prawn too. Tutorial can be found on railscasts.com.

ohho
I use prawn and I'm happy with it :)
klew
+1  A: 

This may fit the bill: http://code.google.com/p/wkhtmltopdf/

Michael
A: 

We tried tow solutions:

  1. using latex generate pdf, there is ruby gem code rtex
  2. using java library iText, use it you may need rjb which allow you using java lib directly in ruby code, just like jruby, but you don't need build all you application on jruby.
allenwei