Use Event Hooks - Thinreports Examples How to run Bundle in this directory: % bundle install Then execute event.rb: % bundle exec ruby event.rb result.pdf will be created. Requirements ruby >= 1.9.3 thinreports 0.9.0