Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Generating Rich PDFs with Prawn

Matthew Bass
August 18, 2009
53

Generating Rich PDFs with Prawn

Leverage Prawn from your Ruby scripts to generate rich, professional-looking PDFs.

Matthew Bass

August 18, 2009
Tweet

Transcript

  1. PDF::Writer • The best choice for a long time... •

    Much slower than Prawn • Markup isn’t as nice
  2. Prawn gives you PDF goodness... • Fast • Clean syntax*

    • Image embedding, tables, etc. • Full UTF-8 support • PNGs with alpha transparencies
  3. History... • Founded April, 2008 by Gregory Brown • ...the

    guy who brought us Ruport • Ruby Mendicant project
  4. Installation Options # Clone from the repository git clone git://github.com/sandal/prawn.git

    # Install the gem directly sudo gem install prawn Keepin’ it simple...
  5. Or configure your Rails project for the latest release of

    prawn-core and extensions... Installation Options rake gems:install rake gems:unpack # optional
  6. Bugs & Gotchas • Adobe Reader incompatibilities • Occasional UTF-8

    errors • Spotty error handling • prawn-format doesn’t like some chars (gt, lt)