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

disable File-->Open...

usera
Registered: Mar 6 2008
Posts: 20
Answered

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 / Windows

My Product Information:
Reader 8.1.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
One of the main security features for Acrobat that has been around for a long time is that you cannot take control of a users system, this is especially true for a script in a document. You can change some of the viewer settings, but the user can always overide these.

That said, if you can install a folder level JavaScript file onto the user's system you can hide things like the toolbar buttons and menu items. This doesn't change the fact that the user can always just use the shortcut key "Ctrl-O" to open a file, or just drag and drop a file into Acrobat, or double click on a file in the explorer.

If you can write a plug-in, I think you overide this functionality, but that's outside the scope of this forum.

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 answer, I did use javascript hidemenuitem hide the file-->open, but do not know how to hide the yellow color open icon. Could you please give me help. if you can that will be great!I understood what you said, for me hide is goog enough, Ctrl-o is other story.

Thanks
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Try app.hideToolbarButton(). However, Acrobat blocks hiding some toolbar buttons. this might be one of those, I haven't tried it. If this is a problem, you can hide the entire toolbar using one of the "showhide" menu items. Use the "app.listToolbarButtons()" funciton to find out if the "File" toolbar is visible. If it is, then call the menu item for hiding it.

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