如何使用pdf.js使PDF无法下载 [英] How to make PDF undownloadable using pdf.js
本文介绍了如何使用pdf.js使PDF无法下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我发现了 pdf.js 项目,它非常有用.但是,我无法弄清楚如何删除下载"选项.
I found the pdf.js project, which is very useful. However, I am unable to figure out how to remove the "Download" option.
推荐答案
以下是步骤:
- 将jQuery库添加到共享文件夹.
- 将jQuery库包含到viewer.html文件中
-
将此添加到标题部分:
- Add jQuery library to shared folder.
- Include jQuery library to viewer.html file
Add this on the header section:
<script>
$(function(){
$('#download').hide();
});
</script>
完成!
这篇关于如何使用pdf.js使PDF无法下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文