Solved

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

Posted on 2008-10-24
3
864 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

738 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