Print out date on PDF files using javascript - not updating
Hi,
We're using Adobe Acrobat Standard 2017 and need to get the print out date on some PDF's. In earlier versions it was easy to add the script and the date was updated when file opened. Now we can not get this to work.
This is what we've done:
- Create the PDF
- Click Prepare Form
- Add a text field called "Today"
- Changed properties for text field
- Calculate - Custom calculation script
This is the script we used: var f = this.getField("Today");f.value = util.printd("yyyy/mm/dd", new Date ());
The date and time appear but it is not updated, it remain the same date and time as when the properties for the text field were applied.
Anyone have any idea why and how this can be solved? Not needed to use JavaScript, putting date in footer is also a solution but we've tried also this With same result, date is static, not dynamic.
