Previous | Next | (P-PDF) JavaScript
Topic: Re: Disabling the 'Save As...' button using Javascript
Conf: (P-PDF) JavaScript, Msg: 66146
From: Brad Saide
Date: 6/4/2002 07:08 AM
Thank-you Doug and Andii - you are both correct.
Doug, I agree with what you say. This is the best place to start when looking for information on the more obscure parts of how pdf files work. I'm a strong believer in learning how things work from code samples, which is why I published the code that we used here, in the hope that someone else may get some usage out of it. That's also why I get a little frustrated looking through the postings here - there is not that much in the way of code samples (At least, not in the postings I looked at - I may have missed the good ones). That's why I released the code we used - I hope that someone might learn something from it, and possibly solve their own problems by using it. However, I should have tempered my posting somewhat, considering that we have already developed a solution.
Andii - Thanks for pointing out that the Active-x control was not part of the SDK. We have rolled out the application that you see to the 700-odd stores that we run, and have got the result we were after. I will however follow it up with the development team and make sure that we are not breaking any laws.
For those that are interested - The disabling of buttons can be achieved by using Acrobat Reader, however the solution that I know of is not document level, but Application level - Go here http://www.planetpdf.com/codecuts/pdfs/tutorial/AcroJS.pdf and towards the bottom of page 15 you will see a description of the JS Function that you need to put in the config.js file. I have not developed a solution using this information, and Javascript is not my strong point so I do not have an example of how the code is supposed to be written. If anyone does manage to make it work, please feel free to contribute it to this worthwhile forum.