New answers tagged

2

This is easily done with pdfTeX built-in commands: \documentclass{article} %just to create some example external JavaScript file \begin{filecontents*}{macros.js} app.alert("hello world!"); \end{filecontents*} % create PDF object from file content \immediate\pdfobj stream file {macros.js} %create JavaScript action \immediate\pdfobj{ ...



Top 50 recent answers are included