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

setLock() failed with "Document is already signed" exception

frleong
Registered: Apr 23 2007
Posts: 6

Hi, I have successfully used Javascript setLock() to set digital signature's signed properties via OLE automation. The document contains several signature fields and, I've found that once the document is signed in one of the signature fields, setLock() will fail with an exception "Document is already signed" with all other fields. However, I can still change the digital signature properties of other fields by using the UI of Acrobat even when the document is signed. Is there any workaround?

My Product Information:
Acrobat Pro 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
"setLock()" sets the fields that [b]will be[/b] locked whent the field is signed. You can use it to specify locking on any number of signature fields, but it must be used before any signatures are applied to the doc. The idea is that "setLock()" is a design side function, where as "signing" is somthing that's done on a working document. Design changes are not, or should not, be allowed on a working doc.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script