How to Disable JavaScript in Adobe Acrobat Reader (and Reader XI)

This post contains affiliate links. As an Amazon Associate, solveyourtech.com earns from qualifying purchases, at no extra cost to you.

To disable JavaScript in Adobe Reader, open Preferences (Ctrl + K on Windows or Cmd + K on a Mac), select JavaScript in the list on the left, uncheck Enable Acrobat JavaScript, and click OK. In Reader XI on Windows, Preferences is also under the Edit menu.

These steps cover the current free Acrobat Reader desktop app on Windows and macOS, and the same checkbox in the paid Acrobat app. Older versions, including Reader XI (version 11), use the same Preferences category.

Adobe ended support for Reader XI on October 15, 2017. Adobe explains the setting in JavaScript in PDFs as a security risk.

Before You Start

  • What it changes: only PDFs opened in Adobe’s app. Your web browser and other PDF apps are not affected.
  • What you need: nothing special on a personal computer. On a work or school computer, your IT team may have locked the setting.
  • What can break: PDF forms that add up totals, check your entries, or use scripted buttons may stop working until you turn JavaScript back on.

Why Turn Off JavaScript in PDFs?

JavaScript is a small programming language. A PDF can carry scripts that run inside Reader, which is how some forms calculate totals or react when you click a button. Adobe calls JavaScript support one of the most powerful features in Acrobat and Reader, and it gives you controls so scripts run only at the security level you want.

Turning it off completely is a sensible choice if you mostly read PDFs and rarely fill out interactive forms. It removes one way a malicious file could try to do something you did not ask for. Security researchers have long noted that some PDF attacks do not rely on JavaScript at all, so this setting is not a replacement for security updates. That is why the Reader XI warning below matters.

How to Disable JavaScript in Adobe Reader

Steps to turn off JavaScript in Adobe Acrobat Reader
The JavaScript switch is in Reader’s Preferences.

These steps use the keyboard shortcut, so they are the same on Windows and macOS.

  1. Open Adobe Reader. You do not need to open a PDF first.
  2. Press Ctrl + K (Windows) or Cmd + K (macOS). The Preferences window opens with a list of categories on the left.
  3. In the Categories list, select JavaScript. The right side of the window changes to show the JavaScript options.
  4. Under JavaScript Security, uncheck Enable Acrobat JavaScript.
  5. Click OK to save the change and close the window.

Scripts in the PDFs you open will not run. Unchecking this box disables JavaScript completely.

Menu Paths in the Current Acrobat Reader

If you would rather use the menus than the shortcut, Adobe’s guide to restricting access to JavaScript APIs lists a different path for each system.

Where the JavaScript setting is in Acrobat Reader on Windows and on a Mac
Illustration: the menu path to the JavaScript setting on Windows and macOS.

Windows

  1. Select Menu > Preferences.
  2. Select JavaScript under Categories.
  3. In the JavaScript Security panel, uncheck Enable Acrobat JavaScript.
  4. Select OK.

macOS

  1. Select Acrobat > Preferences in the menu bar at the top of the screen.
  2. Select JavaScript under Categories.
  3. In the JavaScript Security panel, uncheck Enable Acrobat JavaScript.
  4. Select OK.

The exact path to Preferences varies by product and platform. If your menus look different, the keyboard shortcut is the most reliable route.

How to Check That It Worked, or Turn It Back On

Open Preferences again and select JavaScript. If Enable Acrobat JavaScript is still unchecked, the setting was saved. It stays that way until you change it.

To undo the change, check the box again and click OK. Nothing is deleted when you switch JavaScript off, so you can turn it on for a form and off again as often as you like.

What you see when a PDF tries to run a script while JavaScript is off depends on your version, according to Adobe. In some cases a yellow bar appears across the top of the document. The Options button on that bar lets you trust the document once or always. Only do that for a file you were expecting from a sender you know.

If One PDF Still Runs Scripts

Choosing to trust a document always is a lasting exception. Adobe’s Application Security Guide explains that Trust Always adds that file to your privileged locations, which is a list of files, folders, and hosts that are exempt from some security restrictions. Unchecking Enable Acrobat JavaScript later does not clear that list for you.

To review it:

  1. Press Ctrl + K or Cmd + K to open Preferences.
  2. Select Security (Enhanced) in the Categories list.
  3. Look at the Privileged Locations area. Files and folders you trusted are listed there.
Recreated Acrobat Preferences detail with Security Enhanced selected and an illustrative trusted file path hidden by a gray bar in Privileged Locations
Recreated Preferences detail with Security (Enhanced) selected. The hidden file entry is illustrative; files trusted always can appear in Privileged Locations.
  1. Select any entry you no longer trust and remove it from the list, then click OK.

Adobe also notes that entries an administrator adds for the whole computer do not show up in this list, so ask your IT team if a work PDF keeps running scripts.

Other JavaScript Security Options

The same JavaScript Security panel has two more checkboxes:

  • Enable menu items JavaScript execution privileges: controls whether JavaScript can be run by clicking menu items. It is off by default.
  • Enable global object security policy: allows JavaScript globally through APIs, or trusts specific documents that contain JavaScript. An API is a set of commands a script is allowed to use.

If you are not sure what these do, leave them as they are. Unchecking Enable Acrobat JavaScript is the setting that switches scripts off.

Troubleshooting

  • You cannot find Preferences: use Ctrl + K or Cmd + K. In the current Windows app the command is under Menu, and on a Mac it is under Acrobat.
  • There is no JavaScript category: make sure you are in Adobe’s desktop app. A PDF that opened in a browser tab or another PDF app will not show this panel.
  • The checkbox is grayed out or resets: on a managed computer, administrators can control JavaScript through registry settings on Windows or preference files on a Mac. Ask your IT team, since those settings are meant to override yours.
  • A form stopped calculating: turn JavaScript back on, finish the form, then turn it off again.
  • One file ignores the setting: check the privileged locations list described above.

For IT Administrators

The Preferences checkbox is a per-user choice, and a user can turn it back on. Adobe’s JavaScript preference reference documents two values that matter:

Value Where it lives What it does
bEnableJS The current user’s JSPrefs registry key Stores the Enable Acrobat JavaScript checkbox (1 is on, the default)
bDisableJavaScript The FeatureLockDown policy key under HKLM Set to 1, it disables JavaScript and locks the setting

Adobe explains that without the FeatureLockDown value, users who can create privileged locations can still re-enable JavaScript for a document from the yellow message bar. Its JavaScript controls guide also describes a blacklist that blocks specific JavaScript commands without turning off scripts entirely. Registry changes are for experienced administrators, so test on one computer first.

Should You Still Use Reader XI?

Adobe Reader XI end of support details
Reader XI no longer receives security updates.

End of support means Adobe no longer provides technical support, product updates, or security updates for Reader XI, and moving to the latest Acrobat Reader is strongly recommended. Since disabling JavaScript is usually about security, the safer move is to install the current Reader and turn off JavaScript there with the steps above.

The current Acrobat Reader is set up to update itself automatically. To check by hand, Adobe’s manual update guide says to select Menu > Help > Check for updates on Windows, or Help > Check for updates on a Mac.

Reader XI has other settings too, such as enabling scrolling by default in Adobe Reader XI. If PDFs open too large or too small, here is how to change the default zoom level in Adobe Acrobat.

If you need to edit PDFs, not just view them, you can check out Adobe Acrobat.

Frequently Asked Questions

Does this turn off JavaScript in my web browser?

No. The Enable Acrobat JavaScript checkbox only affects PDFs opened in Adobe Reader or Acrobat. Your browser has its own JavaScript setting. An iPhone, for example, has its own switch to turn off JavaScript.

Why won’t my PDF form calculate anymore?

Many interactive PDF forms use JavaScript to add totals or check entries. Open Preferences, select JavaScript, check Enable Acrobat JavaScript while you fill out the form, then uncheck it again when you finish.

Will disabling JavaScript stop me from opening PDFs?

No. Adobe Reader still opens PDFs with JavaScript disabled. Only the scripted parts of a document are affected, such as calculated form fields or scripted buttons, so ordinary PDFs you just read should look the same.

Is the Enable Acrobat JavaScript setting the same in Reader XI and the new Acrobat Reader?

Yes. The checkbox is called Enable Acrobat JavaScript in both, and it sits in the JavaScript category of Preferences. What changed is how you reach Preferences: the current Windows app uses the Menu button, while older versions used the Edit menu.

Is the newer Acrobat Reader free?

Yes. Adobe Acrobat Reader is Adobe’s free PDF viewer, and it includes the same JavaScript setting. Paid Acrobat plans add editing tools, but you do not need one to turn off JavaScript.

Does this setting apply to every user on the computer?

Not necessarily. Adobe’s security guide shows the Preferences checkbox being stored in the current user’s part of the Windows registry, so other accounts on the same PC may need to change it themselves. Administrators who want one rule for everyone use the FeatureLockDown setting described above.

Next Step

If you are still on Reader XI, install the current Acrobat Reader first, then press Ctrl + K or Cmd + K and uncheck Enable Acrobat JavaScript. To have a different app open PDFs altogether, start by changing the default PDF viewer in Windows 11.