refactor pdf generation
Merge branch 'prawn'
"merged prawn branch refactoring pdf generation"