Hi All,
I need to do some validation in the preprint event of the pdf document. There are samples available using the UI and adding the script in the script dialog, but my requirement is that i need to map the 'preprint' event and event handler to the pdf document using pure javascript code without the UI. Any help would be greatly helpful. Thanks in advance.
Regards,
Charan
You can write a document-level function into the actions handlers using the doc.setAction() method from a folder-level script, but one folder-level script cannot create another.
Suppose you have a folder-level function triggered by a menu item, and it has collected a reference to the active document as oDoc:
var myScript = 'console.println("I am about to be printed and I have " + this.numPages + " pages" );';
oDoc.setAction("WillPrint",myScript);
North America
Europe, Middle East and Africa
Asia Pacific