Creating custom stamp

New Here ,
Jun 20, 2018 Jun 20, 2018

Copy link to clipboard

Copied

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

Views

214

Likes

translate

Translate

Translate

Report

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
Adobe Community Professional ,
Jun 20, 2018 Jun 20, 2018

Copy link to clipboard

Copied

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).

Likes

translate

Translate

Translate

Report

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