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

Custom dynamic stamps used in Acrobat and Reader

dnmcmill
Registered: Jan 29 2007
Posts: 5

We have created custom dynamic stamps using Acrobat 9.4 that display the Name, Organizational Name, and a Time/ Data stamp. However when these same stamps are placed using Reader 9.4; all of the fields contain the Name followed by the Email Address. I doubt this is “as designed”. Can a change request be submitted to standardize the field use between Acrobat and Reader? Thanks...

My Product Information:
Acrobat Pro 9.4, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
What is the code being used to place this data in the stamp?

Has the user's 'Identity' under Reader's 'Preferences' been completed as needed?

Have all the special application folder level JS files been installed on all of the user's systems in the appropriate folder?

George Kaiser

dnmcmill
Registered: Jan 29 2007
Posts: 5
The code being used for the three lines in the custom dynamic stamp is as follows:

event.value = "By: " + ((!identity.name || identity.loginName != (event.source.source || this).Collab.user) ? (event.source.source || this).Collab.user : identity.name)


event.value = "Group: " + ((!identity.corporation || identity.loginName != (event.source.source || this).Collab.user) ? (event.source.source || this).Collab.user : identity.corporation);


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


The users identity has been completed in the Reader Preferences Identity dialog

The PDF file containing the custom stamps is copied from the workstation with Acrobat Professional C:\Documents and Settings\........\Application Data\Adobe\Acrobat\9.0\Stamps into the workstation with Reader installed C:\Documents and Settings\.........\Application Data\Adobe\Acrobat\9.0\Stamps folder.

When a Shared Review PDF file is opened using the Reader workstation the custom stamps are available and will place –

I am not sure what “special application folder level JS files” refer to..



thomp
Expert
Registered: Feb 15 2006
Posts: 4411
It looks like you copied scripts from the Acrobat built-in Dynamic stamps. The logic is a bit of overkill. On the second piece of code I'd suggest removing all of conditional expression code and just using "identity.corporation".

If you work though the logic you'll see that the only time the "identity.corporation" value is used is when "identity.corporation" is defined And the login name matches the Collaboration session user name. I believe that this second bit is what's giving you trouble. If you just want the corporation name then use it.

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

dnmcmill
Registered: Jan 29 2007
Posts: 5
Good answer - it worked - Thanks !