Skip to main content
mrsholliemae
Participant
June 7, 2016
Answered

Add Current Date and Time to PDF when Printed in Acrobat Pro DC

  • June 7, 2016
  • 2 replies
  • 24282 views

Hello!

I am DESPERATELY trying to find a way to add a time and date stamp to a PDF in Acrobat Pro DC when the document is printed. I found an awesome video on how to do so, but the version of Acrobat is older and the method no longer works.

Old version video: https://acrobatusers.com/tutorials/how-to-add-a-date-stamp-to-a-form.

The video is only 1.5 minutes long and describes what I need to a tee! I know the process involves javascript, but I have no experience with this and need a very simple description of what I need to do (very, very basic please). As and FYI, I am working on a Windows 7.

Correct answer Bernd Alheit

mrsholliemae wrote:

I am able to locate where to edit the document and the "Add Text" option.

...

Don't use this.

Use "Prepare Form" and add a text box.

2 replies

Inspiring
June 8, 2016

The tool for creating forms has been renamed to 'Prepare Form". If one sets the field to Display Print Only the hiding of the form field is no longer needed.

To get the time the form is printed on, one needs to change the string format parameter used in the util.printd statement to include the hours and minutes.

mrsholliemae
Participant
June 21, 2016

I am able to locate where to edit the document and the "Add Text" option. However, I cannot find a way to name the Text Field and change the properties to hidden (described 23 seconds into the video). Without a name, the text field cannot be referenced by the formula and the text box will not be hidden from other users.

Please let me know what I am missing! Again, I have worked very little with this program. Thanks!

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
June 22, 2016

mrsholliemae wrote:

I am able to locate where to edit the document and the "Add Text" option.

...

Don't use this.

Use "Prepare Form" and add a text box.

Legend
June 8, 2016

The procedure is exactly the same.

What has changed is the place where to find the tools. In some ways, they are now easier to find, but if that fails you now can search for the tools.

The JavaScript code is the same (although the author uses a method which has been deprecated for more than a decade, but is understood by Acrobat for backward compatibility purposes.

Hope this can help.