generating PDF from Submissions view