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

Job Offered: Disable Save Button in PDF

nacworld
Registered: Dec 17 2009
Posts: 10

Hello everyone,

I need someone to find me a solution for disabling the Save button in PDF Reader, you can probably do it by using JavaScript...

It has been explained here how to remove the toolbar and disabling button by JavaScript http://support.adobe.com/devsup/devsup.nsf/docs/51866.htm

I have no time for this so I am asking you to solve me the problem...

I will pay you $25 to your PayPal when you send me the correct solution...

My Product Information:
Reader 9.2, Windows
M2A
Registered: Dec 18 2009
Posts: 15
What is the exact link for your pdf file ?
When you put the html code as given in the Developer Knowledgebase example, what happens ?

You can also save your pdf file(s) with a password in order to restrict and ban the modifications possibilities, like this the "save button" function will not work any more.

In majority of cases it could be enough and bypass the "html/code/java sciprt/..." trick.
nacworld
Registered: Dec 17 2009
Posts: 10
I don't have a problem with removing whole toolbar, it's easy... I'm trying to disable Save button with javascript as explained there but doesn't work for me... check please if you can do that!
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
You cannot create a PDF that removes individual buttons or disables the ability to save a copy of the file locally - the Acrobat scripting API will not allow it, period.

If you read the API documentation (supplied within the SDK), you'll see the app.hideToolbarButton and app.hideMenuItem functions are elevated-security methods only active during app-init and console events - this means you can only call them from a folder-level script, or by manually typing them into the JS console. You *cannot* embed them in a document, and given most people have JS disabled at the moment (until we deploy the next security patch in mid-Jan), anything you try and control with JS will be ignored anyway.

Trying to disable the "save" button is in itself a pointless concept - the fact someone has the PDF open on their screen means they ALREADY HAVE A COPY SAVED. You cannot stream a PDF, either through Adobe or anything else.
nacworld
Registered: Dec 17 2009
Posts: 10
Then tell me please how this guy has disabled Save button ?

http://www.ebookbusinessmachine.com/ebook_business_machine.zip
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
That's not a PDF, it's a software wrapper using the Adobe Reader ActiveX API.

Also, when I open it the save button is active, working, enabled and visible. In short, it works.
nacworld
Registered: Dec 17 2009
Posts: 10
What do you mean with its not a PDF? Well he has created a program that runs the PDF inside it, right?

When I open it the save button is there but there is no way I can save it! it doesn't let me save it...
M2A
Registered: Dec 18 2009
Posts: 15
Despite the KB example given i do not think it is possible to hide the "save" button for all viewers.
I mean, there are so many pdf-viewer programs used in different browsers that makes it almost impossible.

I asked around me and friends say all like UVSAR said above.

If you want your pdf to be watch on-line it could be still download (and so saved) by doing Google querry with "filetype:pdf"
operator or even by using advanced screen captures tools.

If you have example visible "on-line" drop the web adress so i can check with my browser and try to see how it was made.
khillebrand
Registered: Apr 24 2006
Posts: 26
I create interactive forms and if I don't want a user to save a completed version of the form, I use the "on Save" event to reset or clear all the data. I don't know what kind of document you are trying to keep the user from saving, but perhaps the on Save event is something you might want to consider using.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
@khillebrand: If the user disables JS, it's useless.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

bluebird_9
Registered: Mar 17 2010
Posts: 2
Simplest way to disable Save button in a PDF is by setting it a password.
File -> Properties -> Security and select 'Password Security' from the security method. In the 'Password Security' dialog select 'Restrict editing and prnting...' checkbox in the Permissions pane. In the 'Changes allowed' drop down select what you want the user to be able to do in the PDF.Hiding the toolbar will not help as the user can still press Ctrl + S!