TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I remember when I installed MiKTeX on my PC, I did it by clicking a series of links in a pdf document, which would run the various installer programs.
What (La)TeX commands were used to make that happen? How would I create a pdf with a link that, when clicked, will run C:\path\program.exe with command line arguments -args? Any differences for OSX/Linux?

share|improve this question

Potentially a high security risk, nonportable and may not work in many viewers.

Nonetheless, you are probably looking for hyperref, pdftex, pdfx & xmpincl.

The last one is the most complete package I know for including arbitrary XML/PDF stream objects in the pdf and the like.

Check your sample pdf, it was probably was made using Adobe products with ActionScript stuff. The above packages can do some advanced PDF features but I don't know exactly whether they can launch programs with arguments.

share|improve this answer
Agreed- this is are neat tricks but the functionality required to use them may be disabled by default. Having someone put a link in a PDF that installs a virus would be bad news. – Sharpie Jul 27 '10 at 2:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.