Decouple from Rails. See PrawnCocktailRails.

https://github.com/barsoom/prawn_cocktail_rails