How to get a pdf doc after the details are submitted ?