In previous versions of Adobe Reader developers have had the ability to hide certain features of Adobe Reader, e.g. Print or Save button, etc. In Adobe Reader 10 I am having trouble getting a list of names for some of these features. In the past, I was able to create a listitems.js file with the following information which returned a list of all the button and feature names that I could lock down if desired. The List Menu Items section does provide information but the List Toolbar Buttons function no longer returns any data. Has that function name changed or been deprecated? I need to remove some items from the tool bar but have had no luck enumerating the names of these buttons. Any help would be greatly appreciated.
//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")
console.println(toolbarItems[i] + "\n")
and
console.println(menuItems[i] + "\n")
(you're currently missing the [i])
The Toolbar Buttons list returned in Reader is empty. These items can no longer be controlled via a script.
The Menu Items list contains "Print" and "Save", as expected.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com