Copy link to clipboard
Copied
I have tried creating a stamp with the following javascript:
event.value = util.printd("h:MM tt, dd mmm yyyy", new Date);
event.value = (new Date()).toString();
AFDate_FormatEx("H:MM , dd/mm/yyyy");
but it not updating the date and time automatically.
I have searched and tried several different versions of the javascript and none of the seam to update the date and time.
Any help would be appriciated.
Copy link to clipboard
Copied
Custom Dynamic Stamps are more than the JavaScript. It is important to create the stamp correctly. You state that the script does not work but you fail to describe what happens and what appears in the JavaScript console..
Copy link to clipboard
Copied
I followed the guidelines for making a custom dynamic stamp but the java script isn't updating the date automatically the way I need it too
Copy link to clipboard
Copied
So, first, you only need the first line of code.
event.value = util.printd("h:MM tt, dd mmm yyyy", new Date);
Next, where did you get your instructions for creating the dynamic stamp? There are a lot of not so great posts on this forum.
And Acrobat does not make it easy to create dynamic stamps. For example, you cannot use any of stamp tools in Acrobat, because they will destroy any code you try to place on the stamp. You have to edit the actual stamp file.
Here is an article on just this topic:
https://www.pdfscripting.com/public/Installing-a-PDF-Stamp-into-Acrobat-Macintosh-and-Windows.cfm