Is it possible to make the pdf saved first before submit it?