Basic Usage:

You can render partials the same way you would render them in a normal view

app/views/demos/partials.pdf.prawn:

prawn_document do |pdf|
  render "frontpage", :pdf => pdf
  pdf.text "something else"
end

app/views/demos/partials.pdf.prawn:

pdf.text "frontpage action!!"
pdf.start_new_page
Download PDF

Note: no special code is needed in your controller to make this work

Back To Index