I suspect this might be fairly straightforward, and I am not seeing it because I have been looking at it too long.
Anyway, I created an account at pdfcrowd, use the gform_after_submission function to populate an html page underneath which is then turned into a PDF and downloaded to the browser in a new instance. That part works great.
The part the does not, is after the PDF is created, when I go back to the final page of the form, it still appears to be "working".
In the above code, I thought line 31/32 would send the form back to the home page, for example. I have also put lines 31/32 @ line 23.
Thanks