refactoring PDF generation to use new StudentService class