Cristian's PDF generation patch
Merge pull request #1 from FooSoft/dev

Cristian's PDF generation patch