Folks, I've spent over an hour (!) trying to find an answer to this apparently very, very simple question regarding Acrobat 9 Pro:
What sort of JS do I need to use to get the date on which a PDF is printed to appear as a form field in the footer (hidden normally, generated---obviously---whenever the PDF is sent to print).
I've inserted a form field (called "Today") into the footer of each applicable page, and I don't know what the right/exact/proper code is to execute a "show the current date whenever this file is printed".
I'm assuming that this code is either Custom Validation or Custom Calculation Code---either way, I feel as if I'm thisclose, but cannot close the deal.
Thanks in advance for your help. Novices like me really, really appreciate it!
this.getField("Today").value = util.printd("MMM D, YYYY", new Date());
You can set the "Today" field to print only and add a script to the "Did Print" action to clear the field after printing.
George Kaiser