The code below generate the pdf of an instance and the generated pdf files can be downloaded one by one from the browser.
I want the generated pdfs to automatically s