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

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 ?
abhiabhi2 Answers

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 :

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.
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:
- Click the menu button and choose ..
- In the General panel, go down to the Applications section.
- Find the Portable Document Format (PDF) entry in the list and click on it to select it.
- 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.
- Close the about:preferences page. Any changes you've made will automatically be saved.