Skip to main content
Participant
April 20, 2020
Question

Automatic generated text on printouts

  • April 20, 2020
  • 1 reply
  • 427 views

Hi

 

I want to protect a pdf in such a way that when people want to print it, it is allowed but on the printout a sentence stating that "this is a copy and is only valid on this date (the date of today is inserted)".

 

Does any of you know how to do this?

 

Thanks in advance

 

Regards Christine

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 20, 2020

Add a hidden (but printable) text field to your file and then use a script on the document's Will Print event to populate it.

If the field is called "PrintWarning" then the code would be:

this.getField("PrintWarning").value = "this is a copy and is only valid on this date " + util.printd("dd/mm/yyyy", new Date());