Create a PDF from form is not working