Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate PDF from Rails

The Ruby On Rails Wiki lists a couple of libraries that facilitate PDF generation in Rails. I need to print out address labels (in letter format, thus 12-15 addresses per page) and cannot decide which one to use. Any recommendations?

like image 487
Sebastian Avatar asked Jan 11 '09 16:01

Sebastian


People also ask

What is PDFKit?

PDFKit is a PDF document generation library for Node and the browser that makes creating complex, multi-page, printable documents easy. The API embraces chainability, and includes both low level functions as well as abstractions for higher level functionality.


1 Answers

The best I've seen so far is Prawn:

  • Prawn http://prawn.majesticseacreature.com/
  • http://advent2008.hackruby.com/past/2008/12/17/awn_and_the_future_of_ruby_pdf_generation/
  • http://railstips.org/2008/10/14/how-to-generate-pdfs-in-rails-with-prawn
  • Prawn Rails plugin: http://www.cracklabs.com/prawnto
like image 128
Marston A. Avatar answered Sep 23 '22 14:09

Marston A.