Currently I can generate a single PDF file using this process:
ad_returnredirect
to ADP pages (the PDF template)eval [template::adp_compile -file $template]
.ad_returnredirect "/pdfs/$folder/${fileprepend}.pdf"
to file location to download.But what I need is to generate a multiple PDF files. I tried to use the same process and add a loop... but as you can see it requires to visit the ADP pages first before it can generate template and create a PDF files, is there any other way to create a PDF files in sub-process without visiting the pages for template?
HTTP file delivery only allows one file to be returned, and there is no way to package multiple PDF files in one return. So I understand it's HTTP and not OpenACS that causes your "problem".
I'd just setup one page with links to all the PDF document you'd want the user to download. Or you could zip them together into one file.