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

Generating Rich PDFs with Prawn

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Matthew Bass Matthew Bass
August 18, 2009
72

Generating Rich PDFs with Prawn

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

Avatar for Matthew Bass

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)