These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Print jscript causing digital signature invalid

cyfu
Registered: Apr 26 2011
Posts: 32

Hi,
I'm using this javascript to automatically timestamp my form when users print it.
 
function Print(){
var oDate = new Date(); // get the current date time object
var sDate = util.printd("mm/dd/yyyy h:MM tt" , oDate); // format date time string
this.getField("TimePrint").value = "Printed: " + sDate; // fillin the field value
}
Print();// call my function
 
The form also has two digital signature fields. The second person signs, saves as same filename, and then closes the file/form. After reopening the file, the second signature is invalid (yellow exclamation point). I've concluded that it's this text field using the print script above that's updating the time every time the file is opened. Anybody have an idea of a workaround to this? Thanks in advanced.

My Product Information:
Acrobat Pro 9.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You've changed the contents of the file, so it makes sense the signature is invalidated, no?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

cyfu
Registered: Apr 26 2011
Posts: 32
Yes, I understand that. After the last signature is it possible to make that print function (text field) read only or something that will not change the validity of the signature and form?