Skip to main content
susang39582546
Inspiring
August 22, 2017
Question

Working with Acrobat Pro dc. I want to add the words "Printed on:" before date.

  • August 22, 2017
  • 1 reply
  • 1315 views

I have pdf document that has a javascript set to allow date to appear when document is printed but hidden when viewing.

ASK:  I want to have the words PRINTED ON: appear before the date.

I created a text field and named it TODAY.  Selected HIDDEN BUT PRINTABLE in properties.

Then chose:  Javascript, document actions,  Select document will print, edit, them the following script.

this.getField("TODAY").value = util.printd("mm/dd/yyyy", new Date());

[Email address removed by Moderator]

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
August 22, 2017

Add

"PRINTED ON: " +

before util.

susang39582546
Inspiring
August 22, 2017

Hello,

This is script I am using and it isn’t working for me. Am I missing something?

this.getField("TODAY").value = "PRINTED ON:" + util.printd("mm/dd/yyyy", new Date());

Thanks!

Susan Gionet I Digital Publishing I Graphic Design I 506.648.2215

Irving Paper

435 Bayside Drive

Saint John, NB

E2L 4K9

Bernd Alheit
Community Expert
Community Expert
August 22, 2017

What can you see on the printout.