I have created a latex file which creates a pdf by randomly selecting 10 subfiles from a pool of files. This works fine, and I am able to generate a random PDF every time I run my script. A breakdown of how this works:
- (within a latex article)
- Generate random number.
- Use this number to include a subfile.
- Repeat this for 10 times without repeating the random generated number.
HOWEVER, I now would like to implement this into my website. I would like a user of my websit to "press a button", this runs the script and spits out a PDF for them to download. Any ideas how I might be able to achieve this?
Any advice is welcome.