Answered
I have PDF with Usage Rights enabled and featuring a digital signature so people with Acrobat Reader can fill out then digitally sign and lock the document. This document also has a button with the following javascript action:
this.getField("P-base").setAction("Calculate","");
This works perfectly in allowing the user to over-ride a field which is normally a calculated field. However, once this code is executed, there is apparently an error when trying to sign the document.
Am I missing something, or is this basically because the Enabling of Usage Rights in Reader means this javascript doing something that is restricted and therefor invalidating the signature?
But, there is no reason you need to delete the calculation in order to block it. There are other ways that this can be done. For example, use a conditional in the calculation script to set "event.rc" to false.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script