I'm unable to generate the PDF, tried everything at my own, but it keep giving **500 Error** 