Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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());