Railspdf ======== To begin rendering PDF's, simply create a view with a .rpdf extension and paste in the code: [code] pdf.select_font "Times-Roman" pdf.text "Hello, World", :font_size => 72, :justification => :center [/code] If you want the text to be dynamic, simply replace "Hello World" with an instance variable. It works like a charm, although I had to rearrange the code a bit to make it work. (Sample Code at the bottom) I've not yet tested any of this; I was just too excited once it started working. Note: to get plugins to work properly, you _must_ restart the server after installing it. o Important** If you are using a layout, you must disable it for the view!!! The default filename for the pdf is "Default.pdf" I'll probably change that later to reflect the view name, but for now it works pretty good. To override it, set an instance variable in your controller named "@rails_pdf_name" The rendered pdf will take this filename. Ok, I think that is all for now. Please let me know if you have any questions. Contoller Code > class PagesController? < ApplicationController? def index end def getpdf @rails_pdf_name = "Hello.pdf" @content = "This is dynamic content!!!" end end File: "getpdf.rpdf" pdf.select_font "Times-Roman" pdf.text @content, :font_size => 72, :justification => :center File: "index.rhtml" Get yo fish and dynamic pdf's!

<%= link_to( "Get PDF", :controller => "pages", :action => "getpdf" )%>