Create pdf attachment when form is submitted