thanks, this is not quite what i am after, The PDF doesn’t exsit, the print pdf funtion gernates the pdf then offers it as a download. So i need a link which will allow me to genertate the pdf then download it.
Ah, then you want to make your own custom entry-point, just for this purpose, and in there you can call you code to generate and then save the file in the “upload” folder (or “public” folder if no login is to be required), and create an adequate “download” entry-point URL to send back.
Or you can put the actual PDF content directly as HTTP response, if that’s what you prefer.
See the Docs chapter for entry-points for help on creating a custom entry-point.