I'm trying out the creating a PDF option, and its not working properly