Hi colleagues
I would be very thankful if you could help me with a little issue.
My problem is that I should show the "sign document" dialog box after a pdf document opening.
We have a Document Signature Field in our pdf, so I "just" need to simulate this field onclick event or somehow call a Sign Document menu method.
As I get I can't use app.execMenuItem couse this item is not on the white list on client machines.
Also I didn't find any methods to simulate a Signature Field onclick event (execEvent or smth like that)
Is there a possibility to do what I want using javascript or are there some other ways to do it exist?
Thank you for your help.
Regards, Ilya
this.getField("Signature1").signatureSign({bUI:true});
However, this is a privileged function. It cannot be called directly from inside a document script. You'll have to create a folder level trusted fucntion to call it. Which is exactly what you would need to do to call the menu item.
Signing is an activity that has to be Initiated or Approved by the user. So the user has to either click on the signature field themselves or they have to install a script that will do it.
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