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

digital signature error "this document could not be signed"

sol.manager
Registered: Oct 1 2009
Posts: 17
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?

My Product Information:
Acrobat Pro 8.1.6, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The Usage Rights you applied with Acrobat Pro, specifically the Form Rights, allow you to change the Field calcuation. However, deleting a script changes the the document to the point that the Reader Enabling is invalidated. Only mild changes like filling in data or signing the document preserve the enabling.

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