Generate the PDF before we submit claim and email jobs.

This seems to fix the submission error we saw the other day. I guess these jobs are generating the PDF at the same time and leaving it unreadable when the submission runs...