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

Dynamic stamp help, please! This is driving me nuts!

Duke W
Registered: Jan 10 2011
Posts: 3

The way dynamic stamps are handled in Acrobat 9 Standard is utterly byzantine. I have been through all the dynamic stamp tutorials, etc. hosted here, and while each one fills in a tiny piece of the puzzle, none of them is giving me the whole correct picture.
 
Here's ideally what I'd like to have (and, from research, I'm realizing this is not possible, but even the workaround isn't working):
 
I need a stamp form with some simple information and graphics, to be applied to a target PDF document, after review. The form would have the date, the reviewer's name or initials, and 1 of 4 mutually exclusive check boxes ticked. Ideally, this would be a single stamp file, which would prompt for the appropriate check box when it is applied to the target document.
 
I've finally understood that there is no real way to do that because the stamps get flattened as soon as they are selected, so even if I was smart enough to script prompts for initials and date, the user cannot adjust the check boxes before it is applied.
 
My first workaround was to keep the form as a separate file, which would be edited before each use, then re-imported as a static stamp and applied to the target document. This is slow and clunky because it needs to be changed and re-imported each and every time it is used.
 
My next workaround was to create a dynamic stamp from an import of that static stamp, which picked up the date and the username from the system. This works OK, even though the username field bugs out and does not display correctly when the stamp file itself is open because of security issues - when inserted into a target document, it does in fact display the username properly.
 
That still leaves the problem of the checkboxes, though. As another workaround, I figured I would create 4 versions of the stamp, each with one of the 4 checkboxes ticked, so the users could just insert the appropriate stamp. Still not elegant, but much less difficult that editing and re-importing for every use.
 
I opened my original dynamic stamp from its home location in the installation folder, ticked the first checkbox, and saved it as "Stamp_1" in the same location. I repeated this process with 2-4, Saving As each time until I had 4 stamps. Great - they show up in my custom stamps folder, in order, and they pick up name and date, perfect.
 
NOT. Guess what? For reasons known only to Acrobat, each time I checked a different box in any of the stamp files, it updated the check box in ALL of them, even though they are 4 separate files. So I end up with 4 separate but identical versions and I can't make them un-link in any apparent way.
 
I tried re-importing each file individually, but then they come in as static, flattened stamps and do not display the username properly because the script is getting denied access to that info by the security system (which I set down to the lowest level, hoping that would work - nope).
 
Do I seriously have to go through the process of creating new dynamic stamps 4 different times just to make this work? And once I do that, am I going to have to repeat this whole byzantine process for each different user installation, or can I get it right once and then copy the files to the correct location on each machine?
 
Thanks for hanging in through all this and thanks for any input into either the original problem or into the workaround solution. And again, YES, I have read the dynamic stamp tutorials, but they don't really give enough to go on in this specific instance.
 
Oh, and also, the Java debugger pops up due to the security error when the master dynamic stamp file is open, but I cannot find any other way to invoke it when I want to (certainly none of the tutorial methods seem to work). Thanks for any insight into that, too.

My Product Information:
Acrobat Standard 9.4, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You could look at using the Dialog object within Acrobat JS, but this is a very advanced project. See PDF Stamps are Cool!! by Thom Parker and follow the link for "Stamps Gone Wild".If you are getting a security waining, then you may need to write an application folder level script and use the privileged property to allow access to the a restricted item.

George Kaiser

jones
Registered: May 27 2011
Posts: 12
Hi Duke

Long time since you posted this so you probably have figured this all out.

But i was having the same problem you had couple weeks ago..
This is all doable, so just be in concact if you still need to know how to..


It can drive you litle nuts trying to figure those things out, Coz asking those who
know this stuff around here.. will just get you bits and pieces.
Cause most of them are trying to make a living selling this info´s..

best regards.
David
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
David,

There are a lot of good articles here and not everyone is charging for their skills. I learned how to create forms and stamps at this site and others. I also do not charge nor do I sell and coding services. Some of those that provide services also provide a large amount of free advice.

Thom Parker has provided a wealth of information for those willing to work and learn. Max Wyss, D.P. Story, and Ted Padova have been contributing and promoting the PDF format and development for many years. Dov Issacs is now an employee of Adobe, but he was a strong user advocate for years.

George Kaiser

Duke W
Registered: Jan 10 2011
Posts: 3
Hi, David, and thanks for your reply. It has been a while since I posted this, and I did figure it out. As I recall, I ended up making 4 individual stamp files, one for each checkbox configuration. These I combined into a 4-page (with a blank at the beginning) single file as part of the stamp creation process. I don't recall exactly how that worked but it was a result of the import process within Acrobat.

This file was created in C:/Users/MyName/AppData/Roaming/Adobe/Acrobat/9.0/Stamps. It works fine in the Acrobat application now. There are 4 separate available stamps in a submenu, and each one correctly picks up username and current date information when inserted. Most importantly, I was able to copy that combo file to our server, and simply copy it to the proper location on each local machine without having to re-create the stamp file the hard way each time.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Duke, sorry I did not see your question. I could have pointed you in the right direction. In fact, George did just that. Sounds like you did things the hard way. Four different stamps is a pain to deal with on the user's end.

So David, how did you solve your issue? Did you use a custom dialog. I have created many such stamps. In fact I've created some incredibly complex stamps that use check boxes, radio buttons, and image selections. All using custom dialogs as the UI. You can see a sampling of what's possible in this video, Stamps Gone Wild.

BTW: I'm sorry to hear that you don't get paid for the work you do. In fact I don't see how you can keep going, seeing as how you don't put any value on the work that you or anyone else does:( Maybe if you did value other peoples knowledge (and hard work) you wouldn't struggle so much.

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

Duke W
Registered: Jan 10 2011
Posts: 3
Thom:

I did go through the Stamps videos and several of the tutorials I was pointed to elsewhere, but some combination of my own stupidity and/or version differences prevented any of those solutions from working for me.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Sorry, you should have posted back. We're here to answer questions. But the 4 check box issue is a sticky one because of the required custom dialog. The solution is advanced scripting.

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