Prawn

Fast, Nimble PDF Generation For Ruby
Download

Prawn Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Greg Brown
  • Publisher web site:

Prawn Tags


Prawn Description

Fast, Nimble PDF Generation For Ruby Prawn is a PDF generation library, written in Ruby, with the long term goal of providing a suitable replacement for PDF::Writer.Building printable documents doesn't have to be hardIf you've ever needed to produce PDF documents before, in Ruby or another language, you probably know how much it can suck. Prawn takes the pain out of generating beautiful printable documents, while still remaining fast, tiny and nimble. It is also named after a majestic sea creature, and that has to count for something.The features you need, without all the complexityIn addition to being the fastest pure Ruby PDF generation library, Prawn has features that might prevent you from hating your job. The samples below give a taste of what Prawn based programs looks like, click the code to reveal the PDF it generates.Built in support for UTF-8Internationalized text in Prawn is as simple as providing UTF-8 strings for it to render, assuming you've got a Unicode aware TTF font handy. For those who are running on Ruby 1.9, any encoding that can be converted to UTF-8 will work out of the box!Easy image embeddingPrawn makes embedding JPEG and PNG images a breeze. With support for alpha transparency, easy positioning and scaling of images, you'll have no problem including all the graphics you need in your documents.Flexible table drawingPrawn has built in support for rendering text in the form of tables, providing basic reporting functionality. This lets users focus on customizing their documents rather than forcing them to write a ton of low level graphics drawing code.Simplified content positioningAnyone who has done work with a low level graphics engine knows that doing coordinate math isn't fun. Prawn simplifies this by allowing you to box off a sub-section of the document and treat it as its own mini-coordinate space. This means that all positioning is relative, making it easy to move things around your document while keeping your code clean. Text can also be flowed within these sectioned off bounding boxes, so this makes it trivial to generate columns of text on the fly.And loads more to comePrawn is currently alpha-level software under active development. New features are cropping up every day, and we expect to see loads of cool things in the near future including integration with the popular Ruby Reports project. For now, you can keep an eye on the latest new features by checking out the examples distributed with the source, which include the code samples shown above and much, much more!


Prawn Related Software