How to generate submission PDF and send to users?