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

Dynamic Stamp Jumps the Gun

justd4now
Registered: Aug 31 2007
Posts: 2

I have a dynamic stamp that automatically prompts you for the information before you can select the stamp and paste it on the page. I've found that if you select the page it works correctly. Is there any JavaScript that will select the page and make it active so that this issue is resolved. Thank You

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Read this Article

[url=http://www.acrobatusers.com/tutorials/2007/dynamic_stamp_secrets/]http://www.acrobatusers.com/tutorials/2007/dynamic_stamp_secrets/[/url]

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

HoldemJoe
Registered: Aug 31 2007
Posts: 3
Great article and well written.
Unfortunately, I keep receiving the following error message -
TypeError: event.source has no properties.
I am using Acrobat 7 Professional.
The Stamp Samples work fine except for the one that requires User Input (Example3).
It generates the above error which prevents the input box from prompting User input when the stamp is placed on the page.
(By the way, to get the samples to work I had to edit the javascript to reflect the new generated file name for the stamps.)
Any ideas?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Odd error, I've moved this sample stamp around to several different systems and versions of Acrobat without ever getting this error or haveing to change the stamp names. It sounds like you recreated the stamps and copied the code from the article? I'd have to examime your stamp file to figure it out.

Try placing the problem code in a try/catch block to get better error info and to see how the rest of the code progresses.

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

toms
Registered: Dec 10 2007
Posts: 7
Thom,
Nice article, but I have the same problem as Joe. I also looked the sample video file from Lori DeFurio, and I think I did exactly as it shows. However still no luck.
I am trying to create stamp with three different user input boxes. I created my own image, then I Created Stamp from it.
Next, I opened the file and copied your user input field (x3) to it and I changed each field name from UserData to my names (e.g. A, B, C) so the names reflect the purpose of those fields. Saved, try, and still nothing.
If I stamp the document the image shows correctly, but the fields are inaccessible.
I got it to work once somehow, but after exiting Acrobat, I was not able to use it again.
Saving you file to C:\Program Files\Adobe\Acrobat 7.0\Acrobat\plug_ins\Annotations\Stamps\ENUfor some reason does not automatically show in stamps menu either.

Can you help?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
First, I want to make something perfectly clear about stamps.

Stamps are images, there is no active content in a stamp. Form fields that are placed on a Dynamic Stamp are flattened before the stamp is placed on a page. The idea is to update the fields before the stamp is placed. After the stamp is placed it's just a pretty picture.

Dynamic Stamps are very touchy on several counts. They will only run a calculation event. They will not run privileged code, except for the Identity object.

If you coppied fields, and therefore UI code from the "Dynamic Stamps Secrets" article, then there are things in the code that have to be changed before it will work. Go back and re-read the article.

If you are having problems with a piece of code, then the first thing you need to do is develop some understanding of the problem by simplifying things. For example. If you haven't done a dynamic stamp before, then create a really simple one.

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