Skip to main content
Participant
April 25, 2024
Question

How to Force Date Printing

  • April 25, 2024
  • 1 reply
  • 520 views

I would like that, whenever a user chooses to print the PDF content on paper, the printing date to be stamped on it.

This topic has been closed for replies.

1 reply

JR Boulay
Community Expert
Community Expert
April 25, 2024

You can use a form field that is invisible on screen but visible when printed.
And fill this (or these) field(s) with the current date using a script, either when the document is opened or when it is printed ("Doc will print" event).

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
April 26, 2024

You can use the following code to do that:

this.getField("PrintDate").value = "Printed on: " + util.printd("dd/mm/yyyy", new Date());