Adobe Reader: how to disable toolbar buttons and menu items

Issue

 If you want to disable some toolbar buttons like the collaboration, sign or commenting buttons you must do this using application-level Javascript.

Solution

 Place the following Javascript code inside a .js file in %ProgramFiles%\Adobe\Reader 9.0\Reader\JavaScripts to disable the toolbar buttons:

// [File - Create Adobe PDF Using Acrobat.com], plus toolbar button
app.hideMenuItem("WebServices:CreatePDF");
app.hideToolbarButton("Weblink:CreatePDF");

// [File - Collaborate], plus toolbar button
app.hideMenuItem("Annots:FileCollaboration");
app.hideToolbarButton("Annots:CollabToolButton");

app.hideToolbarButton("CommentTask");
app.hideToolbarButton("SigTaskButton");

Additional Information

To discover the names of the toolbar buttons and menu items you should save the following Javascript in a .js file in %ProgramFiles%\Adobe\Reader 9.0\Reader\JavaScripts.  The Javascript console window will pop up when you start Reader and will list the buttons and menu items.

_____________________________________

//ListItems.js
//Open Javascript Console
console.show();
//List Toolbar Buttons in the Console
var toolbarItems = app.listToolbarButtons()
for( var i in toolbarItems)
console.println(toolbarItems + "\n")
//List Menu Items in the Console
var menuItems = app.listMenuItems()
for( var i in menuItems)
console.println(menuItems + "\n")
_____________________________________
reference: (181028701)
VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 3.1/10 (7 votes cast)
Adobe Reader: how to disable toolbar buttons and menu items, 3.1 out of 10 based on 7 ratings

5 Responses to Adobe Reader: how to disable toolbar buttons and menu items

  1. Daya Shankar says:

    Hi,

    I want to show my pdf file online, and i don’t want any visitor to download or print that pdf.

    Is their any way to block save and print of PDF which will help me achieve this task.

    Thanks in Advance.

    • dmcmahon says:

      You can hide certain menu items, but not the save button. Even if you were able to hide the save and print buttons, the users could still perform these actions be hitting the appropriate keyboard shortcuts (i.e. CTRL-S and CTRL-P).

      What you need to do is NOT prevent saving in the Adobe Reader client, BUT control the actual use of the PDF. Doesn’t matter if someone has it, if they can’t open it, or perform certain actions on the PDF itself – that does it.

      And that’s where DRM (Digital Rights Management) comes in:
      http://www.adobe.com/products/livecycle/rightsmanagement/
      http://www.adobe.com/devnet/reader/topic_drm.html

  2. Vipin says:

    Hi,

    This is very useful for me as i have to disable save, copy, print options.

    but i also want to disable the “Share files using sendnow online..” option. and your script above for listing the toolbarbuttons and menuitems does not show name for this option.

    please help me.. it is very urgent and important.

    Thanks and regards,
    vipin dhiman
    vipindhmn87@gmail.com

    • dmcmahon says:

      Hi Vipin,

      I cannot guarantee a timely response through blog comments. In future please contact the support team, or use the forums http://forums.adobe.com for urgent requests.

      If you wish to disable the Acrobat.com features then you can do this using Customization Wizard to create an MST transform file to transform the standard Adobe Reader/Acrobat installation. Using Customization Wizard, you go to “Online and Acrobat.com features” > Acrobat.com features > Disable all Acrobat.com access…
      If you open the Help pages in Customization Wizard you will get further details about the registry keys that are used to apply these changes. In this case it would be HKCU\Software\Adobe\Adobe Acrobat\10.0\Workflows\bEnableShareFile.

      You can also refer to the AIM tool under the Preference Reference category to look up the registry keys available to customize your installations. The bEnableShareFile regkey is also described there.

      Further info available for enterprise deployments here: http://helpx.adobe.com/acrobat/kb/enterprise-administration-acrobat-products.html

      best regards,
      David

  3. Always good to find something new and interesting to learn from. Great website you’ve got here.