These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Acrobat X Dynamic Stamp Issue

Plasticman
Registered: Aug 31 2011
Posts: 4

I have created a custome dynamic stamp and inserted the dynamic field from an existing dynamic stamp. Here is the problem: Once it is save with the current time and date the stamp is no longer dynamic when selected for future use. However when I go back in and edit it; by clicking on the calculate field under properties; after clicking edit custom calculation and clicking back out it will update the way that it should. Why does it not stay dynamic once I save the stamp? Current javascript is:
  
event.value = (new Date()).toString();
AFDate_FormatEx("h:MM tt, mmm dd, yyyy");
 
Simply put: The stamp does not read the current time and date once it is saved.
 
Thank you in advance.

My Product Information:
Acrobat Pro 10.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
What happens if you change the script to just this:

event.value = util.printd("h:MM tt, mmm dd, yyyy", new Date());
Plasticman
Registered: Aug 31 2011
Posts: 4
The same problem; the dynamic area updates when I enter this script in however once I save it and add it to a document the dynamic field is not responding. It only shows the time that I actually entered the script in at.
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
When you open the stamp document in Acrobat and look at the template name (Tools -- Document Processing -- Page Templates) for the stamp page in question, what is it? The first character of the name of templates for dynamic stamps should be the # character.

If it's not, make sure the stamp page is the current page, select the template name in the list, add the # character to the beginning of the template name, and click the Add button. It will ask you to confirm.

You can tell you're dealing with the correct template name by clicking the little eye icon to toggle the visibility of the template page. Be sure to leave it visible when you're done.
Plasticman
Registered: Aug 31 2011
Posts: 4
Well I must not understand Acrobat X at all, so I am sorry if I am doing this completly wrong. I followed your directions but I cannot find any document in the template field. So I named the file again and clicked add; after that it showed up with the eye next to it. However I do not know how to find the name of the template without doing that. I have tried recreating the form and stamp several times and cannot find out what I am doing wrong. In Acrobat 7 Pro I had no problem creating the document and saving it in the correct forlder. Here is the only link that I could find on creating a dynamic stamp; however it is Acrobat 9 not X. As far as I know I have followed the directions all the way through.

http://forums.adobe.com/thread/425309
hydanis
Registered: Oct 8 2011
Posts: 1
Hi Guys
I am new to all this but have tried unsuccessfully the whole of my Saturday (2011-10-08) to try and get this to work, and I am not a programmer. I have used everything I can find on the web and nothing works. Can someone help me please.....The stamp just does not want to update itself?

Thanks
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
If you can post the PDF somewhere I'd be happy to take a look.
Plasticman
Registered: Aug 31 2011
Posts: 4
I still have not found a resolution to this issue. I have searched and searched but had no luck. I am still waiting patiently for a fix. Good luck.
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
You are asking help from individuals who are voluntarily helping others. You have been asked to provide additional information.

Have you provided that information?

George Kaiser

eworctap
Registered: Jul 13 2007
Posts: 10
I am running into the same issue. The date & time on my dynamic stamp only shows the original creation date when inserted into a document. I have posted a sample of my stamp to the users gallery with a link to this thread in the description (pending approval on 12-5-11). Hopefully someone will be able to provide a solution to this problem...Thanks!
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Once a stamp has been applied, the values in it can not change. If you mean that you want the date field in the stamp to show the current date, that's not possible. You will need to use actual form fields for that.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

eworctap
Registered: Jul 13 2007
Posts: 10
Thanks for the quick reply try67. Hopefully, I am saying this correctly: I would like to create a custom dynamic stamp that, when inserted, will include the current date & time, not original creation date. I copied & pasted the script from Adobe's dynamic stamp to a text field on my own stamp, but it only shows the date I created the stamp. Am I missing a step? Can you please take a look at the text field script or can I send it to yu directly? Thanks again for your help.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
When the date, or other fields, are not changing on a stamp the problem is usually with how the stamp was created, not the script. Is the date field on the actual stamp file. One of the biggest problems people have with dynamic stamps is that they try to add a PDF file with fields to the stamps using the "Create Custom Stamp" tool. This tool flattens all fields. It is only used to create a static stamp. The stamp is made dynamic after creation by adding fields to the newly created stamp file.

On another note, the user's gallery is not for test samples. If you want to make your file available, post it to www.acrobat.com.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

eworctap
Registered: Jul 13 2007
Posts: 10
Thanks Thom...So, I should insert a page to the Dyamic.pdf file that contains the new stamp and place the date/time text field there?
eworctap
Registered: Jul 13 2007
Posts: 10
Thanks Thom...So, I should insert a page to the Dyamic.pdf file that contains the new stamp and place the date/time text field there?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
No, There are a few articles on this site on creating dynamic stamps. I'd suggest reading those articles and pay attention to the details. Dynamic stamps can be tricky. They require some manual massaging.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
Indeed, a nice massage is a great stress reliever when the project is done. :^)
eworctap
Registered: Jul 13 2007
Posts: 10
Thanks for all the input. I will go over the tutorials again...
eworctap
Registered: Jul 13 2007
Posts: 10
Oops - sorry about the mis-post to the Gallery section (Thanks Thom).
Hoyane
Registered: Nov 26 2011
Posts: 33
I have had this before. I got some info but not By, To or a name. To make that show I had to add # to Tools> Document Processing> Page Template. It will not be dynamic without that.
Additionally if you import the new stamp using "Create Custom Stamp" it will lose its Calc. Code. You have to place your stamp in the stamp directory. C:\Users\Hoyane\AppData\Roaming\Adobe\Acrobat\10.0\Stamps Here it will automatically detect your stamp.

This should work. I have tested everything i said before typing this.

Good Luck.
eworctap
Registered: Jul 13 2007
Posts: 10
Thanks Hoyane...fiiiiiinally got it to work. Using a combination of everyone's input, I was able to create the dynamic stamp that I needed.

[Thomp provided the following links that will guide anyone thru the process]

Here is a simple video tutorial on how to create a dynamic stamp:
http://acrobatusers.com/tutorials/2007/02/custom_dynamic_stamp

Here is a more advanced discussion of dynamic stamps
http://acrobatusers.com/tutorials/2007/02/dynamic_stamp_secrets

Many thanks to try67, Thomp & Hoyane for you advice & suggestions on how to get this working correctly. Another save by AcrobatUsers.com!
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
eworctap,
I'm very happy that you got the stamp working, but I'd like to stress to anyone reading this thread, do not use the method outlined above to create a dynamic stamp. You really made this much more difficult than it needs to be. This is a slightly confusing and complex process, but it's not anywhere near as screwy as the steps you've outlined above. There is no reason to replace pages or to modify the template names, especially for a simple date field.

Here is a simple video tutorial on how to create a dynamic stamp:
http://acrobatusers.com/tutorials/2007/02/custom_dynamic_stamp

Here is a more advanced discussion of dynamic stamps
http://acrobatusers.com/tutorials/2007/02/dynamic_stamp_secrets

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

StevenD
Registered: Oct 6 2006
Posts: 368
Dynamic stamps are great. With that said I don't create them very often so the tutorial I have that I got from AUC is indispensable and if the directions are followed success is bound to follow. I just had an occasion to create one for someone to use yesterday and i got out the old tutorial again and voila I've got a dynamic stamp with a date field that works great. So those two tutorials Thom suggests are great. Use them. You can't go wrong. I have used the dynamic_stamp_secrets to create a more robust dynamic stamp with great success.

StevenD

eworctap
Registered: Jul 13 2007
Posts: 10
Thanks Thomp. I appreciate the feedback. I will edit my post above to reference your tutorials for other users. Having the direct links in this thread helped alot (wish I had the links yesterday instead of the goose chase!). Seems as if others have had just as much difficulty getting it to work. StevenD: I agree. The information provided here has proven to be invaluable for an Acrobat user.