Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Docs viewer disable download

Please take a look at this link

http://jsfiddle.net/C7Py6/3/

The last icon on google viewer's toolbar - enter image description here enables user to view on new browser window and download PDF. The question is, how can I make it view only and disable download (At least disable this toolbar item). Is that possible with google viewer? or is there any other viewer that works like Google Viewer but view-only?

like image 736
heron Avatar asked Aug 24 '12 11:08

heron


1 Answers

You can host your PDF files on Google Docs and prevent viewer downloads. To do this do followings:

  1. Once you login into your Google Docs account at docs.google.com website, you should see listing of documents in your account. Right click specific document that you want to secure by disabling download option.
  2. Then click on “prevent viewers from downloading” option. This will remove downloading option and other users viewing the document cannot download the document file as a whole and reproduce its copy.

enter image description here

Also note, since you can only prevent downloading of documents created by you, click ‘Owned by Me’ option on left side. This will display document created and owned by you. Then you can disable and prevent document downloading option for files on display.

Then you can just share this PDF on your website. IT will be view only. The code will look like that:

<iframe src="url to pdf/preview" width="640" height="480"></iframe>
like image 172
Tural Ali Avatar answered Oct 10 '22 10:10

Tural Ali