Generate pdf file from docx for submission