1

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.

closed as off-topic by DG', barbara beeton, darthbith, Jesse, Svend Tveskæg Mar 10 '16 at 16:11

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – DG', barbara beeton, darthbith, Jesse, Svend Tveskæg
If this question can be reworded to fit the rules in the help center, please edit the question.

  • This isn't really a TeX question. I think you want to tell your server to run TeX. That may run into security problems. Perhaps ask on stackoverflow. If you get an answer I'd be interested. (You can find me from my profile here). – Ethan Bolker Mar 10 '16 at 15:13
  • Welcome! I'm not sure this question is related to LaTeX. Try serverfault.com ? – Clément Mar 10 '16 at 15:13
  • Thank you everyone for your replies. @Clément, I will definitely have a look at serverfault. I might have to move away from TeX though. Don't really want to do that as I already have my PDF nicely typeset. – Christopher Zerafa Mar 10 '16 at 21:27
  • @EthanBolker, I will keep you posted on what I end up doing. I did read a post on texexchange about security problems when running latex online. However, I wanted to know if maybe there was someone who came up of a cheeky work around or something. – Christopher Zerafa Mar 10 '16 at 21:27
  • @EthanBolker, I came across this website: mathmaster.org/dotevenodd . It seems to be running latex through Python, and the generated pdf is of top notch quality. I will be pursing this further. – Christopher Zerafa Mar 13 '16 at 22:49