Solved

How do I disable menubar items and toolbar items for PDF documents viewed in a web browser?

Posted on 2008-10-24
3
838 Views
Last Modified: 2012-06-21
How can I disable all ability to save, copy, export, and email a PDF (per document) when viewed within a browser?  I have accomplished this at an application (Acrobat Reader) level by placing the attached file in the C:\Program Files\Adobe\Reader ?.0\Reader\Javascripts folder for locally viewed documents, but this affects the menubar and toolbar for ALL PDFs viewed within reader.  The app.hideMenuItem and app.hideToolbarItem methods cannot be used within a PDF document level... nor will it work at all for documents viewed within the browser.  I need to accomplish this for individual PDFs rendered from a website.
Config.js.txt
0
Comment
Question by:abainternational
3 Comments
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 500 total points
ID: 22800672
"I need to accomplish this for individual PDFs rendered from a website."

You will not do it.  The display of a PDF is controlled by the user -- they choose the browser, they choose which plugin modules will open a PDF file from the browser (usually an acrobat reader version) and the features they see are the features that their plugin module allows them to do in that browser.  I can view, print or save ANY PDF I get from the web, and no one can stop me, or anyone else, it is the user's control as to how his browser displays and allows printing or saving, it is OUT of the control of the website.

You can do this on your own system with an application that limits your interaction, but you cannot do this from a site on the internet.  If the PDF file is there, anyone can download it, save it, print it, and extract out of it all the text and graphics if they want to.

If you want to protect your content, consider using FLASH for all of it.  You flash will not be indexed by any search engines, so your page ranks will be zero, but it is much harder to extract images and text from a flash presentation than a PDF document -- which you cannot protect from a website, unless you want to put all the PDFs in a folder on the website protected by a login and password.  That is your only other option.
0
 

Author Comment

by:abainternational
ID: 22808426
Thank you for your response and insight.  This is consistent with what I have been finding... does anyone know of a viable work around?  Third-party DRM (document rights management) or encryption tool?  "Failure is not an option."  Kind Regards.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Jquery GMAP3 Hierarchy 1 27
simple javascript form validation 2 19
Forms that calculate points for wordpress 10 27
Getting Random number with min and max value. 2 28
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question