Skip to main content
Participant
March 24, 2022
Question

Looking for a way to insert the actual date when document is printed eacht time the document is open

  • March 24, 2022
  • 1 reply
  • 410 views

for Acrobat DC Pro

 

Hello,

I am looking for a way to have the actual date when the pdf is printed in the header or footer or somewhere else in the document. The pdf docs are on a Sharepoint and are created from Word or Excel. 

I have been researching and trying for a while now but wasn't getting anywhere with the instructions I found, probably because they were made for older versions of Acrobat.

Can anybody give me some advice how to do it, so I can insert the actual date when the document is printed quickly. It shouldn't be a long process because mostly I have to edit several documents at one time.

Thanks in advance,

Annette

 

PS: I don't understand, why this isnt't a basic function of Acrobat in times of document control and QM certifications...

 

This topic has been closed for replies.

1 reply

BarlaeDC
Community Expert
Community Expert
March 24, 2022

Hi,

 

You could add a text field in the header/footer, which can be populated.

 

If you search for "Document Actions" in the tools, you should find a tool that can open and one of the options is "Will Print", if you click "Edit" you can add your own code here.

 

then you could enter code something like:

this.getField("HeaderDate").value = new Date();

 

Obviously you would need to change "HeaderDate" to the name of your field.

And the new Date(); could be formatted to just about any format

see here - https://www.w3schools.com/js/js_dates.asp