Pdf generation for assignment