Friday, April 2, 2010

Folder level Javascript disabled for a...

Hi Gurus,

I created a folder level JS, it works fine on all computer here exept on one. On one computer, the javascript's in the pdf are working but the function called in the folder level script is not executed. (when it works on all the others). The script is in the right folder and the pdf works on other computers. Do I have to enable something in the preferences of acrobat reader 9.1. I checked the settings for JS in edit/preference and they are the same as for the others.

Thanks for your help guys.

Folder level Javascript disabled for a...

You should try to create a simple script with just an app.alert(''It works!'') function to make sure you're using the right folder.

If you see the alert when you open Reader, then the problem is with your script. If you don't the problem is with Acrobat's settings or the folder.

Folder level Javascript disabled for a...

Thanks for your reply,

The problem is with Adobe Reader has the script works on all the other computers. There must be somewhere an option to allow folder level JS but I don't know where it is. The JS in the pdf itself are working so the problem is only with folder level JS and on this pc.

That's why I recommended to make a test script, to make sure folder-level

scripts are working on this machine.

There's no setting to specifically allow folder-level scripts. If they are

properly placed and JS is enabled then they will launch.

However, if your script inserts menu items you should make sure that this

option is checked under Preferences-JavaScript, the second check-box from

the top. You should probably check all 4 boxes, just in case.

All the script does it to generate a mail with the mailto function. The Preferences-JavaScript are set as on my pc. So it must be something else. If I email the pdf to my pc, it works, so the pdf form is fine, the script is the same as on my pc.

--- En date de聽: Mer 2.9.09, try67 %26lt;forums@adobe.com%26gt; a 茅crit聽:

De: try67 %26lt;forums@adobe.com%26gt;

Objet: Acrobat Scripting Folder level Javascript disabled for a user

脌: ''antony clark'' %26lt;clarkeanthony@yahoo.fr%26gt;

Date: Mercredi 2 Septembre 2009, 13h35

That's why I recommended to make a

test script, to make sure folder-level

scripts are working on this machine.

There's no setting to specifically allow folder-level

scripts. If they are

properly placed and JS is enabled then they will launch.

However, if your script inserts menu items you should make

sure that this

option is checked under Preferences-JavaScript, the second

check-box from

the top. You should probably check all 4 boxes, just in

case.

%26gt;

Have you looked up the 'mailDoc()' and 'mailForm()' methods in the Acrobat JS API Reference?

Both methods have an ''F'' in the Qick Bar Box for Reader. This ''F'' indidcates a security restriction applies to these methods in Reader. Going to the pages for the description of the Quick Bar show that the ''F'' restriction indicates that ''Form Rights'' need to be applied to the form before Reader can use these functions.

No comments:

Post a Comment