Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating custom stamp

New Here ,
Jun 20, 2018 Jun 20, 2018

I'm needing to create a custom stamp in Adobe X Pro that show the current date (system).  I am not familiar with how javascript works and all the codes that I've found online are for older versions of adobe and do not work.

TOPICS
Acrobat SDK and JavaScript , Windows
470
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 20, 2018 Jun 20, 2018
LATEST

Acrobat X already comes with a number of dynamic stamps that include the date (e.g. Revised and Approved), which you can modify. See here for instructions about how to modify one of these built-in stamps: Modify Dynamic PDF Stamps in Acrobat - KHKonsulting LLC

All you need is this little JavaScript snippet to print the date in a field (this is from the Revised stamp):

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

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

All you need to do is change the time/date format to whatever you want (e.g. just "mm dd, yyyy" for the date).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines