如何禁用pdfviewer工具栏按钮 [英] How to disable pdfviewer toolbar buttons
本文介绍了如何禁用pdfviewer工具栏按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个网络服务, return pdf stream 给定的文档ID,我将设置内容类型为application / pdf并编写输出放入< Object> (Html5)upto 这个点我完成了,好的!
我的问题 :
我的客户要求 以禁用pdf工具栏按钮除了打印按钮 < Object>, ,使用 jQuery / JavaScript来禁用所有PDF工具栏按钮?
谢谢 提前。
< b>我尝试过:
$( paper-icon-button)。remove( #下载跨度>);
$( #download)。detach();
解决方案
( paper-icon-button )。remove( #download);
( #download)。detach();
Hi All,
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 <Object> (Html5)upto this point I am done and OK!
My problem is :
My client requirement is to disable the pdf toolbar buttons except the print button in <Object>, is there any way using jQuery/JavaScript to disable all the PDF toolbar buttons?
Thanks in Advance.
What I have tried:
$("paper-icon-button").remove("#download");
$("#download").detach();
解决方案
("paper-icon-button").remove("#download");
("#download").detach();
这篇关于如何禁用pdfviewer工具栏按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文