如何从iframe禁用或隐藏pdf的打印和保存按钮? [英] How to disable or hide print and save button of pdf from iframe ?

查看:2120
本文介绍了如何从iframe禁用或隐藏pdf的打印和保存按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iframe中禁用或隐藏pdf中的打印和保存按钮..



我尝试了什么: < br $>


I want to disable or hide the print and save button from pdf inside the iframe..

What I have tried:

<iframe id="ifrm" width="100%" height="700" src="Uploads\sample.pdf#toolbar=0"></iframe>

推荐答案

你不能。当用户查看PDF时,无论如何它都会保存到他们的驱动器上的临时文件夹中,这样他们就可以将其从那里复制到其他地方。
You can't. By the time the user is viewing the PDF it is saved onto their drive anyway in the temporary files folder so they could copy it somewhere else from there.


这篇关于如何从iframe禁用或隐藏pdf的打印和保存按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆