7 Replies Latest reply on Mar 11, 2015 1:07 PM by emilyo51983823

    Adding a date stamp using Acrobat XI

    23twins Level 1

      Hi there


      I want to add a date stamp to a voucher PDF, so that when it is downloaded and printed out, it displays today's (system) date.


      I followed the tutorial at: http://tv.adobe.com/watch/acrobat-x-tips-tricks/quick-tip-how-to-add-a-date-stamp-to-a-for m/   ,double checked the javascript, and this seemed to work. But when I checked the following day, the date displayed was still set at yesterday's date. It had not moved forward. I tried saving as Reader Extended/Enable More Tools, but that didn't work either and I think it removed the JavaScript altogether.


      In the original, I went to  Edit All JavaScripts and this is the code that was there:



      //-----------------Do not edit the XML tags--------------------




      //<ACRO_source>Document Will Print</ACRO_source>


      /*********** belongs to: Document-Actions:Document Will Print ***********/

      var f = this.getField("DatePrinted");

      f.hidden = false;

      f.value = "Printed on: " + util.printd("mmm dd, yyyy", new Date());





      Can anyone please help?