< back to blog posts

PDF Magic


I've been using PDFs quite a bit in Jobber lately. From emailing employees their schedules to printing of postage labels for client invoices. However, when we updated to Rails 3.1, I discovered that the Prawnto gem we had been using was broken. A quick look at the network graph on github showed no clear maintainer. There were lots of forks with great features just sitting there, so I decided it was time for somebody to step up to the plate. I gathered all the fragmented forks and merged them into a single repository. I also cleaned up the code, fixed all the tests, and put together some basic documentation. You can see the benifits of all the hardwork at https://github.com/forrest/prawnto.

As for the labels, I found a great little gem called prawn-labels written by Jordan Byron. With only a few tweaks to add support for envelope templates, it was working perfectly for us.