create pdf out of rails

a small internal web app used at a company for event administration. event data is input in to a database via a web form, out of this a html form for event registration for users already registered in the companies contact database. Also needed is a simple way to generate a pdf invitation out of the rails model data, without needing to create an extra document in a word processor or similiar...
1 answer

pdf:writer

use pdf:writer gem:
http://ruby-pdf.rubyforge.org/pdf-writer/

usage:
pdf = PDF::Writer.new
pdf.select_font "Times-Roman"
pdf.text "Halli hallo!", :font_size => 72, :justification => :center
pdf.save_as("hello.pdf")