← back to the blog
fousa tag
Current tag: tag
2009
Inline formatting with Prawn
When using Prawn to generate PDF in Ruby, you'll sometimes have to add style to your PDF. Well sometimes means a lot from my point of view. Below are some short code snippetz on how to do this. It's just like using HTML tags with some style attributes attached to them. CODE First of all you need to require the prawn-format lib...
Mail a prawn PDF as attachment
Once upon a time there was a little PDF document that was locked inside of the big and ugly mailer. With no way to escape, not even when the mailer started spitting out some dangerously boring emails! It looked like PDF's destiny was to be locked away forever... But then the gray pussy (also known as die fousaaa!) on the white horse arri...