Prawn is a pure Ruby PDF generation library that provides a lot of great functionality while trying to remain simple and reasonably performant. Extensive text rendering support, including flowing text and limited inline formatting options. Comprehensive internationalization features, including full support for UTF-8 based fonts, right-to-left text rendering, fallback font support, and extension points for customizable text wrapping. Support for PDF outlines for document navigation. Low level PDF features, allowing users to create custom extensions by dropping down all the way to the PDF object tree layer. (Mostly useful to those with knowledge of the PDF specification). If you are looking for a highly flexible PDF document generation system, Prawn might be the tool for you. It is not a reporting tool or a publishing toolchain, though it could be fairly easily used to build those things.

Features

  • Vector drawing support, including lines, polygons, curves, ellipses, etc.
  • Support for both PDF builtin fonts as well as embedded TrueType fonts
  • Support for both PDF builtin fonts as well as embedded TrueType fonts
  • PNG and JPG image embedding, with flexible scaling options
  • Security features including encryption and password protection
  • Tools for rendering repeatable content (i.e headers, footers, and page numbers)

Project Samples

Project Activity

See All Activity >

License

GNU General Public License version 3.0 (GPLv3)

Follow Prawn

Prawn Web Site

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Prawn!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby PDF Software, Ruby PDF Generation Libraries

Registered

2021-12-30