Skip to main content
scottm5887954
Participant
February 26, 2019
Answered

My custom dynamic stamp is not dynamic.

  • February 26, 2019
  • 6 replies
  • 18354 views

Hey folks, been working with this all day. Just trying to create a simple "printed" stamp with the time and date on it.   Here is what I did.

1. Created the printed.png file.

2. Used Create Custom Stamp, selected my .png file, categorized it as dynamic, named it, and saved it.

3. Open up the stamp from c:\users\username\appdata\roaming\adobe\acrobat\DC\Stamps.

4. Used Prepare Form, created a text field, lined it up right below "printed" and added the javascript code.  (I saw the time and date appear in the stamp.

5. I saved the stamp and moved it to c:\program files(x86)\Adobe\Acrobat DC\Acrobat\plug_ins\Annotations\Stamps

6. I closed Adobe Acrobat.

7. I open Acrobat and choose a .pdf file to open.

8. i try to stamp it, but all I see is "Printed", the dynamic date and time do not appear.

If I browse to the stamp .pdf and open it, I DO see the time and date, but when I use it as a stamp, I do not.

Why?   I cant figure it out for the life of me.

Correct answer Ben33342086cwtd

Ignoring everything else in this thread, I got it to work by opening the existing 'Dynamic' stamp template in the local stamps folder, clicking prepare form and copying the script from their own working dynamic stamp, which is slightly different from the one given in the linked instructions above me in this thread. To be precise:


event.value = (new Date()).toString();
AFDate_FormatEx("h:MM tt, mmm dd, yyyy");

 

Worked for me.

6 replies

JR Boulay
Community Expert
Community Expert
April 14, 2025

[MOVED TO THE ACROBAT DISCUSSIONS]

Acrobate du PDF, InDesigner et Photoshopographe
Ben33342086cwtdCorrect answer
Participant
April 8, 2025

Ignoring everything else in this thread, I got it to work by opening the existing 'Dynamic' stamp template in the local stamps folder, clicking prepare form and copying the script from their own working dynamic stamp, which is slightly different from the one given in the linked instructions above me in this thread. To be precise:


event.value = (new Date()).toString();
AFDate_FormatEx("h:MM tt, mmm dd, yyyy");

 

Worked for me.

Participant
June 5, 2024

My stamp is there in the Dynamic Stamp folder but it is not listing the date and time... the below is the code in the Calculation Scrpt/Create and Edit JavaScripts...event.value = util.printed("h:MM tt, mmm dd yyyy", new Date);

 

I saved the file and then when I open a document I see the image in the dynamic stamp area but there is no date and time listed with it when I use it.

 

 

try67
Community Expert
Community Expert
June 5, 2024

It's util.printd(), not util.printed() ...

Thom Parker
Community Expert
Community Expert
February 26, 2019

First, you've placed the same stamp in two different locations. One of these needs to be deleted. I would suggest deleting the original stamp file in the "user" folder.

This could be the source of the problem, i.e., Acrobat is picking up the stamp in the User folder (no dynamic field) first and then ignoring the second stamp file in the App folder.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
scottm5887954
Participant
February 27, 2019

"

First, you've placed the same stamp in two different locations. One of these needs to be deleted. I would suggest deleting the original stamp file in the "user" folder.

This could be the source of the problem, i.e., Acrobat is picking up the stamp in the User folder (no dynamic field) first and then ignoring the second stamp file in the App folder."

This.  Thank you so much. So many of the tutorial processes out there do not mention deleting the one stamp, which could explain why I saw hundreds of people complaining about it not working for them like it was for me.  The moment I got rid of the stamp under the user profile, the stamp worked correctly.   Thank you so much.

But, it led me to finding out this is not what is wanted by the customer.   Now i have to figure out how to have Adobe Acrobat time stamp a print out automatically everytime its printed.

Thanks again.

Thom Parker
Community Expert
Community Expert
February 27, 2019

Excellent!! Glad this was an easy stamp issue to fix.

To help us understand how this situation came about, can I ask you about your process?  Where did you find the steps you took to make this dynamic stamp?  Why did you choose to copy the stamp into the "app" area, rather than leave it in the "user" area? 

About printing:

There is a Document Action for "WillPrint". You'll find the dialog for setting the actions under the JavaScript tools.  I would suggest placing a form field on the PDF, then use the "WillPrint" event to put the print date in this field. If you want this date to only be seen on the Printed page, set the form field visibility to "Hidden but printable".

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Karl Heinz  Kremer
Community Expert
Community Expert
February 26, 2019

Try67 is right, we need to see your code.

But there are a few things you can do to potentially get a step or two further:

Does the dynamic stamp work when it's in your user level stamp folder?

Did you change the internal stamp name? For dynamic stamps, you need to use an internal stamp name that starts with a '#' - otherwise the stamp script will not be evaluated every time you place the stamp. To change the stamp name, go into Page Templates and change the template name from "abcdef=some string" to "#abcdef=some string".

Do you see any error message in the JavaScript console? You can bring up the console using Ctrl-J - if there are any error messages, please copy and paste them into your reply.

try67
Community Expert
Community Expert
February 26, 2019

Post the code you used.