Disable Pdf Download

Active2 years ago
  1. Disable Pdf Download Sharepoint
  2. Disable Downloading Pdf From Browser

I have a web service which will return pdf stream for a given document id and I will set the content type to application/pdf and write the out put to IFRAME upto this point I am done and OK!My problem is :My requirement is to disable the pdf download toolbar button in IFRAME, is there any way using JavaScript or j query to disable the PDF toolbar buttons,i tried some thing like this:

Disable Pdf Download Sharepoint

Disable Pdf Download

Sep 29, 2013  Question:I want to display the contents of PDF file in a webpage. I don't want the browser to download when the user clicks. I do not whether there is a solution on VeryPDF? Answer: If you need to show PDF in a website and disable downloading ability, maybe you can have a try of embedding PDF to a website. Jun 24, 2017  Use this to embed your PDF file without save and print options code.

I tried setting toolbar=0 for iframe tag but it dint work.an anyone please tell me how to achieve this ?

abhiabhi
3994 gold badges12 silver badges25 bronze badges

2 Answers

Disable pdf download from website

I hope I am not very late to reply. But here's is something you can do to prevent the users. Use iFrame to display your PDF and make sure that you are displaying using Google. I used the following code :

Disable Pdf Download

Here you can simply change the url=http://www.tutorialspoint.com/php/php_tutorial.pdf and replace it by your own URL where you kept your PDF.

JiteenJiteen
2742 gold badges5 silver badges20 bronze badges
user8565193user8565193

Not the answer you're looking for? Browse other questions tagged javascriptjquerypdf or ask your own question.

Third-party PDF viewers are available, if you prefer not to use the Firefox built-in viewer. To switch from the built-in PDF viewer to another viewer:

  1. Click the menu button and choose ..
  2. In the General panel, go down to the Applications section.
  3. Find the Portable Document Format (PDF) entry in the list and click on it to select it.
  4. Click on the arrow under the Action column for the above entry and select the PDF viewer you wish to use from the drop-down menu.
    • When Preview in Firefox is the selected action, the built-in PDF viewer is used. For more information, see View PDF files in Firefox.
  5. Close the about:preferences page. Any changes you've made will automatically be saved.

Disable Downloading Pdf From Browser

//These fine people helped write this article:AliceWyman, philipp, Tonnes, Michael Verdi, Amit Kumar Thakur, Wesley Branton, user917725, Lan, Joni, Heather, Ömer Timur.You can help too - find out how.