Hello Everyone, this is my first time posting here.
I have a bit of a strange situation:
I have a user (we are talking about Acrobat 8 Pro) who is in charge of our QA documentation. What she is putting in place is an online (intranet) bank of SOPs for our staff.
The requirements that she has for these documents is that it have a watermark that says that the document expires 24 hours after printing (not hard to do) and a stamp of some kind (watermark/stamp/whatever will work) that says when the document was printed. I have to accomplish all this as something that is embedded into the document due to the users not being able to be trusted to stamp their own documents before they are printed.
Now I came up with this script:
var f = this.getField("Today");
f.value = 'Printed on: ' + util.printd("m/d/yy", new Date());
This script is to populate a text field called Today. It works great in that I have the script run on a "Hidden But Printable" text field in the "Document Will Print" action.
The problem comes when I tried to copy/paste the field "Today" on all of the pages. When I hit print and the script runs it crashes acrobat, which I assume is because it is trying to populate multiple fields with the same name and it dosen't jive well.
Any suggestions?
George Kaiser