Having searched around there is an API called AVAppRegisterForPageViewRightClicks which is supposed to prevent right clicks, But I dont know how to use this, or whether it can be used within my HideMenuItems.js file, tried many different syntaxes but to no avail.
This API is available in Adobe Reader and Adobe Acrobat plugins.
Hi thanks for your response, yes it seems this API is availalbe but there are no examples of how to use it. You mentioned its available in Adobe reader and Adobe Acrobat plugins. Well I'm using the Adobe Reader Active X Browser Plugin so how would I use this API to restrict the Browser plugin.l
I am not a developer writing my own custom plugins, I simply want to use the out of the box adobe reader product, specifically the Active X browser plugin, but I need to be able to customise and restrict what the user is able to do.
The reason I need to do this is that we publish IE on a citrix server which users access to launch this highly secure web based application. The sensitive data that they view is in the forms of PDFs which are viewed by the Adobe reader browser plugin within the browser. The web application controls who can save, export, print etc, so I need to be able to lock down the Adobe Reader Active X browser plugin so that the user cannot initiate save, and print functionality from within the viewed pdf. I've done this successfully by restricting the menu and toolbar items but it is still possible to right click on the viewed pdf and click select print from the context menu. This would cause us a big security flaw, which would result in users that are only supposed to view being able to click print.
I published a desktop (locked down) and published IE (locked down) all successfully with GPOs so the users cannot do anything they are not supposed to do, however Adobe reader it seems cannot be easily locked down and this is a problem as I might have to start looking at viable alterantives. Surely a simple requirement as this could be acheieved with relative ease.
In an ideal world there would be an available GPO template (.ADM file), which could be used to centrally manage these type of settings. I dont even mind writing an ADM myself, I've written many before, but for example what I need is the appropriate registry entries and how they are used to lock down / restrict certain functions so that I can write such an .ADM file.
I dont mind how I achieve this, I just need a way to do it. So if using the API AVAppRegisterForPageViewRightClicks would achieve this, can someone please tell me how I can implement something that would use this API to restrict the right Click Print options for example.
The sort of answer I;m looking for would be
Create a file, paste in this code, place the file is this location xxxxx, this is a per machine fix so will affect all users
Edit the regstry and make this HKCU change xxxxx - This is obviously a per user fix so use normal methods to get this into every users profile.
Open up the file in this location xxxxxx and add AVAppRegisterForPageViewRightClicks = AlwaysDisable (or whatever the syntax is)
Thanks for you help
Hi thanks for your response, yes it seems this API is availalbe but there are no examples of how to use it. You mentioned its available in Adobe reader and Adobe Acrobat plugins. Well I'm using the Adobe Reader Active X Browser Plugin so how would I use this API to restrict the Browser plugin.
You can use the API in plugins for Adobe Reader or Adobe Acrobat. You can more information about development of plugins in the Acrobat SDK.
so how would i do this for the Adobe Reader Browser plugin for example?
You can find samples for plugins in the Acrobat SDK.
Hi thanks for your solution,
But i have a problem in folder script level my java script is not debugging and there is no changes in output pdf.colud you please brief explanation for how to compile my script.other wise please send me to mymail those details. firstname.lastname@example.org .
I already disabled print button using some other software.
I tried two types of code
// [File - Create Adobe PDF Using Acrobat.com], plus toolbar button
// [File - Collaborate], plus toolbar button
This is a very bad way of trying to prevent someone from printing your file... They can easily overcome it by disabling JS or even just by pressing Ctrl+P, which would still open the Print dialog.
If you want to restrict printing, as well as other functionalities, use a security policy. It's not 100% secure either, but it's a much better way than what you're trying to do with this code...