I like to create a PDF file that when printed includes the date and time it was printed. Since a PDF editor would be required to actually modify the contents of the PDF, I thought using a PDF form (i.e. a PDF that contains a fillable form) where one text box is automatically updated with the current date and time the PDF was printed. Actually creating a pdf address is not the purpose of this question (the goal is to use pdflatex , which can put javascript in pdf files).
I know that PDF files may contain JavaScript code, but there are limitations compared to websites. Is it possible, for example, to support the Adobe Adobe JavaScript API, to have a script that:
- runs when printing PDF
- can change a text box or something else that prints in plain text
- update this field with current date / time?
source share