Hello, I am fresh out of the womb and into the Acro Scripting world. I have been able to fumble my way into figuring out:
this.deletePages({nStart:this.numPages-2, nEnd:this.numPages-2})
and
this.mailDoc(true,"To", "CC", "BC", "Subject", "Body-Message");
I was able to make a signature field perform these "operations"(please tell me if that is the wrong term), in 7 Standard. Now that I have Pro X, I get the following message, from the Console:
"RaiseError: This operation is not permitted.
Doc.deletePages:5:Field Signature1:Format
===> This operation is not permitted."
I can only suspect that I am now doing this wrong or Pro X does not permit this because of revised security(over 7 Standard).
My intentions are to construct a cover document, that will perform these actions, and combine it with other PDF support documents(emails, etc).
You help is appreciated.
Another way to do this is to drive the entire process from a Button. Then you could write a script that performs the operations, Delete, Sign, Email. In the proper order.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script