/bundles/itninjaweb/img/Breadcrumb_cap_w.png
Disabling Menus and Buttons

To disable UI elements, you will first need to list all of the elements by name. To do this, save the following script as ListItems.js in %ProgramFiles%\Adobe\Reader 9.0\Reader\JavaScript.

Here’s the code you’ll need to hide those items. Copy and paste into HideItems.js, then copy into %ProgramFiles%\Adobe\Reader 9.0\Reader\JavaScripts.

//HideMenu.js
// [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");

// [File - Digital Editions]
app.hideMenuItem("eBook:Digital Edition Services");

// [Help - Improvement Program Options]
app.hideMenuItem("UsageMeasurement");

// [Help - Online Support], plus sub menu items
app.hideMenuItem("OnlineSupport");
app.hideMenuItem("KnowledgeBase");
app.hideMenuItem("AdobeExpertSupport");
app.hideMenuItem("AccessOnline");
app.hideMenuItem("SystemInformation");

// [Help - Repair Adobe Reader Installation]
app.hideMenuItem("DetectAndRepair");

// [Help - Check for Updates]
app.hideMenuItem("Updates");

// [Help - Purchase Adobe Acrobat]
app.hideMenuItem("Weblink:BuyAcrobat");
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
you should add this to the knowledge base article - http://www.appdeploy.com/packages/browse.asp?cat=alpha&str=a

Unless you're asking a very well disguised question [:D]
Answered 03/11/2011 by: timmsie
Fourth Degree Brown Belt

Please log in to comment
0
Actually including ListItems.js would be good, too! :-)

Also, please use the CODE tag when posting code or other lengthy text.
Answered 03/11/2011 by: VBScab
Red Belt

Please log in to comment