Skip to main content
Participant
December 18, 2023
Answered

dynamic Stamp

  • December 18, 2023
  • 2 replies
  • 2314 views

The dynmaic stamp is not working correctly, the Date and Time stay the same as when the stamp was created when i add my stamp to a pdf.

 

I tried these 2 different Java Scripts and it doesn't seem to work with none of them:

 

  • this.getField("Text6").value=util.printd("dd.mm.yyyy, HH:MM:ss", new Date());
  • event.value = util.printd ("dd mmm yyyy", new Date);

Does ayone have a clue ?

This topic has been closed for replies.
Correct answer Thom Parker

This is the Stamp i have created


The main issue with this stamp is that it has two pages, and the wrong page (the completely blank one) is set as the stamp. 

Change that and it will work. 

 

 

 

2 replies

Thom Parker
Community Expert
Community Expert
December 18, 2023

The problem is likely to be in how you created the Dynamic Stamp. For example, if you import the stamp into Acrobat using the "Manage" or "Create" custom stamp features, then the script will be destroyed and the date/time will be fixed. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
M23332Author
Participant
December 19, 2023

How am i supposed to import the Stamp into Adobe ?

try67
Community Expert
Community Expert
December 19, 2023

If you're copying them from another computer you need to copy the stamp PDF file directly from the application's Stamps folder. The exact path depends on your OS and version of Acrobat.

Bernd Alheit
Community Expert
Community Expert
December 18, 2023

Where does you use the script?

M23332Author
Participant
December 19, 2023

Under "calculte" and then "custom calculation script"