Updated the chmod for the pdfgenerator