Jump to content

Changing Acrobat Preferences


Recommended Posts

So Listening to Security Now and working with PDF's all the time I would like to make my life easier. I want to make the javascript option disabled in Acrobat

Here is what I did for the manual way

WinWait("Adobe Acrobat Professional")
If Not WinActive("Adobe Acrobat Professional") Then WinActivate("Adobe Acrobat Professional")
WinWaitActive("Adobe Acrobat Professional")
Send("^k")
WinWait("Preferences")
If Not WinActive("Preferences") Then WinActivate("Preferences")
WinWaitActive("Preferences")
Send("j{TAB}{SPACE}{ENTER}")

Can I do it better?

Can I use ObjCOM ?

I don't know... It there a way to check the Preferences to see if it is already done?

Thanks for your help.

Link to comment
Share on other sites

It may be better to look to the registry.

Enable Javascript

RegWrite('HKCU\Software\Adobe\Adobe Acrobat\8.0\JSPrefs', 'bEnableJS', 'REG_DWORD', 1)oÝ÷ ٰⱦåx¯i'+m«­¢+ÙI]É¥Ñ Ìäí!-
TÀäÈíM½ÑÝÉÀäÈí½ÀäÈí½É½ÐÀäÈìà¸ÀÀäÈí)MAÉÌÌäì°Ìäí¹±)LÌäì°ÌäíI}]=IÌäì°À

*The path in the registry depends on the version of Acrobat.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...