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
[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/date_time_part1/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/date_time_part1/[/url]
You might also want to read more about Dynamic Stamps here:
[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