PDF generation working, need to add tests.