Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-12-07 10:49:01

lisawf
Member
Registered: 2007-12-07
Posts: 0

Dynamic Stamps - Is There An Alternate Code To Show Date?

Hi, I've created a custom dynamic stamp which when used shows a person's name and current date by using the Javascript code from Acrobat's own dynamic stamps:

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;

Works fine in Acrobat 7 but not 8, the date is missing and from what I can gather it's a bug and may have something to do with the clocks going back.

Is there a alternate code I could use to do the same thing please as I really need to fix it?

Cheers
Lisa


My Product Information:
Acrobat Pro 8.1 / Windows

Offline

 

#2 2007-12-09 21:59:15

thomp
Member

Registered: 2007-04-23
Posts: 1027

Re: Dynamic Stamps - Is There An Alternate Code To Show Date?

Don't use the "Date.toString()" or the "AFDate_FormatEx()" functions.  Instead use the regular date formatting tools.  You'll find examples in this article.

http://www.acrobatusers.com/tech_corner … ime_part1/

You might also want to read more about Dynamic Stamps here:

http://www.acrobatusers.com/tutorials/2 … p_secrets/

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in