Skip navigation
CaptainChuckles
Currently Being Moderated

Dynamic Stamp Jave Script For Date And Time

Jan 30, 2012 3:46 AM

Hi.

 

The date and time have stopped appearing after my name when I insert a dynamic stamp into a PDF document.

I have edited the java script as instructed elsewhere on this site but this has made no difference.

Also when I select dynamic stamps I have two copies of each stamp in the drop down menu!

Iam using Adobe Acrobat 9 Pro on Windows 7 Profesional.

Please help.

Thanks.

Norman

 
Replies
  • Currently Being Moderated
    Jan 31, 2012 10:32 AM   in reply to CaptainChuckles

    Hi CaptainChuckles,

     

    The problem is likely due to the fact you have two of the same stamp files installed and they are over-running each other.  Delete one of the duplicated stamp files and see if that clears up the problem ( you can look at the create date/time to see which one is the older file and which is the new one you created).

     

    Hope this helps,

     

    Dimitri

    WindJack Solutions

    www.pdfscripting.com

    www.windjack.com

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 3, 2012 10:03 AM   in reply to CaptainChuckles

    First, in Acrobat or Reader goto the application Preferences, Edit => Preferences, and click on the "Identity" category. Now complete the requested information and click "OK".

     

    Now your dynamic stamps should show your name as entered into the Identity for your computer. This should be done by each user on each system the user uses. Without the Name field being completed, Acrobat or Reader will use the login name or the collaboration user ID.

     

    When scripting if you want to access the user name or other values of the Identity object you will need to install a special application level script into a specific location on each machine. This location can vary by version of Acrobat or Reader.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 6:47 AM   in reply to CaptainChuckles

    Any errors in the Acrobat JavaScript Console?

     

    What code are you using to add the user name?

    How are you going to handle a missing user name?

     

    From one of the Adobe supplied stamps, the code to inset the user name and date:

     

    event.value = (new Date()).toString();

    AFDate_FormatEx("h:MM tt, mmm dd, yyyy");

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

    + " at " + event.value;

     

     

    The code that reads:

     

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

     

    determines if the identity.name is blank and if so then uses the Collab.user name and if the identity name is not blank, then the identity.name is used.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points