These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Greeting, Application need to disable File-->Open... in Acrobat Reader

usera
Registered: Mar 6 2008
Posts: 20

Greeting,

Needs help!

One Application need to disable File-->Open... in Acrobat Reader 7 or 8

(Application launch and open a PDF file for read.)

Please help.

thank you very very much!

My Product Information:
Reader 8.1.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can't disable File-Open, but maybe you can remove the menu item with JavaScript. Look in the Acrobat JavaScript Reference for the "app.hideMenuItem()" fuction.

To use this function you'll need the platform independant name for it. You can download a tool that will give you all the menu items names at:

http://www.windjack.com/products/freestuff.php

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

usera
Registered: Mar 6 2008
Posts: 20
Thanks,

Went to http://www.windjack.com/products/freestuff.php and download Menu Item and Toolbar Report Generator, After re-launch reader v8. I got a button call Menu List, clicked on it, and get

Actobat Controls Report

Menu item Report
Toolbar button Report

OK Cancel

Try both, nothing happend where I can get the report.

Thanks.

How to hide "save as text " and "Save a Copy"?

Thanks
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Opps, didn't see that you are using Reader, this particular script is for Acrobat Pro, or Standard only. The menu item report script creates the report by creating a new PDF document. This is something that's completly forbidden in Reader.

The two menu item names you are looking for are "SaveAs" and "ADBE:SaveAsAccText".

I'm not sure that Reader will allow you to remove these menu items. There are some restrictions on what you can do. The hide function also needs to be executed from a privileged context, such as a folder level script.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

usera
Registered: Mar 6 2008
Posts: 20
Thanks you very much! that is works

Since I only have Reader. Do you mind send me these 2 reports or post in here.

they we can get that important information.

thank you very much!
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There is quite a bit you can do with Just Reader, you'll need the debugger for Reader, which you can download from here (http://www.windjack.com/products/freestuff.php ). But, for any meaningful Acrobat development, you'll need Acrobat Professional.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

usera
Registered: Mar 6 2008
Posts: 20
did download and install, could you please give me a sample, for example, if I want to disable "Start Meeting...", how to use that debug to find the value?

thanks
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Open up the console window and run the following line of code:

app.listMenuItems();

This function prints out a list of all the menu items. It's a bit difficult to read, but it's all there.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

usera
Registered: Mar 6 2008
Posts: 20
thanks for your information. But I have no way to typing or paste the code
app.listMenuItems();

in the console windows, could you point me out, I am using acrobat reader V8

Thanks