Unable to create a PDF from a form