Helper classes and functions for PDF generation with Prawn