Answered
Hi,
I have given the following javascript code in the "Will Save" Document Action. But this code does not execute in Adobe Reader, it works fine in Acrobat Standard/Pro. Why this code does not execute in Reader?
app.alert("Hi");
if(app.viewerVersion<8){
app.alert("Exit");
this.closeDoc(true);
}
Also,
1. How to set a javascript that executes when a pdf document is opened?
2. Should the priviledged javascipt always be folder level javscripts or document level javascript can also defined priviledged javascript?
Cheers,
Vinay
Also, how are you saving the file in Reader?
To answer the other questions:
1. You need Acrobat for that. You can either embed it manually using the Document JavaScript window, or in a script using the addScript() method.
2. You can place priviledged methods in document-level, but they will not have the same privileges as folder-level ones.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com