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

Disable toolbars, menus and right-clicks.

jnixon78
Registered: Aug 10 2007
Posts: 8

Hi all! Just a noob here. I need help figuring out how to do 4 things. I have a web site that will automatically open a PDF file in a new Internet Explorer window. After that, I need to:
 
1. Disable the toolbar (also cannot be opened with F9)
2. Disable the Right-Click on the document.
3. Disable the File menu.
4. Allow the user to Print somehow, but they can't open a menu or toolbar.
 
Basically, I'm trying to get around the whole "can't prevent saving" of a PDF. It's okay that it's in the temporary internet files. I'm just trying to disable things that the average user would try to do to save PDFs.
 
Thanks a lot in advance guys!!

My Product Information:
Reader 8, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi jnixon78,

Lots of people would like to get around "can't prevent saving" a PDF, but there is no easy solution, sorry. In fact, I would say it is impossible.

The best option for you is to invest in a DRM solution that gives you control over what, who, when etc. can use,view, or pass around your file. But I don't believe ANY DRM solution currently on the market can prevent "saving" a PDF once it is downloaded on a user's system.

You have discovered the disable toolbar option- there is also a disable Menus option. But these can be turned back on, as you stated in your item #1. You can also have a print button on your PDF so the user can print without the menus or toolbars.

Hope that helps,

Dimitri
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]
jnixon78
Registered: Aug 10 2007
Posts: 8
Actually I figured it out. I embedded a PDF that was created as Full-screen by default. Then, I used this code to open a new window:
window.open("pdfdoc.php", "main" , ["Top=50", "right=170" , "Toolbar=no", "Location=0" , "Menubar=no" , width="700" , "height=600", "resizable=yes","scrollbars=no", "status=no"])

Works pretty well, but I also was able to find code via Google to disable right-clicks, just in case anyone wants to try saving the page that way. So it seems like those are all working, except I'm having problems getting a Print button to work in Firefox. I'll post separately about that item. Thanks!
subba_rao80
Registered: Oct 21 2008
Posts: 4
jnixon78 wrote:
Actually I figured it out. I embedded a PDF that was created as Full-screen by default. Then, I used this code to open a new window:
window.open("pdfdoc.php", "main" , ["Top=50", "right=170" , "Toolbar=no", "Location=0" , "Menubar=no" , width="700" , "height=600", "resizable=yes","scrollbars=no", "status=no"])

Works pretty well, but I also was able to find code via Google to disable right-clicks, just in case anyone wants to try saving the page that way. So it seems like those are all working, except I'm having problems getting a Print button to work in Firefox. I'll post separately about that item. Thanks!
Hi this is kiran kumar,

I have tried it, but this is not working. Please guide me how to use the above script.

Thanks
subba_rao80
Registered: Oct 21 2008
Posts: 4
1) I have created PDF form, I want to do like below points:

1. Disable the toolbar
2. Disable the Right-Click on the document.
3. Disable the & menu. address bar of Internet explorer.If its happen , Please guide how to goabout it.

Thanks!!!
qaz123
Registered: Oct 29 2008
Posts: 1
jnixon78 wrote:
Actually I figured it out. I embedded a PDF that was created as Full-screen by default. Then, I used this code to open a new window:
window.open("pdfdoc.php", "main" , ["Top=50", "right=170" , "Toolbar=no", "Location=0" , "Menubar=no" , width="700" , "height=600", "resizable=yes","scrollbars=no", "status=no"])

Works pretty well, but I also was able to find code via Google to disable right-clicks, just in case anyone wants to try saving the page that way. So it seems like those are all working, except I'm having problems getting a Print button to work in Firefox. I'll post separately about that item. Thanks!
I think that those measures can be avoided by pressing F8 for displaying the toolbar again and by pressing Ctrl-Shift-S for saving.