如何解决如何使用 JavaScript 使 PDF 不可打印和不可下载
我在 Odoo ERP 中使用 Muk Documents 插件。但是我想让我的 pdf 文件不可打印和不可下载。代码片段:
updateActions: function () {
this.$actions.empty();
if (this.activePreview) {
if (this.activePreview.downloadable) {
this.$actions.append($("<a>",{
'class': "mk_preview_download",'html': '<i class="fa fa-download" />','title': _t("Download"),'href': this.activeFile.url,}));
}
if (this.activePreview.printable) {
this.$actions.append($("<a>",{
'class': "mk_preview_print",'html': '<i class="fa fa-print" />','title': _t("Print"),'href': '#',}));
}
_.each(this.activePreview.contentActions(),function(action) {
this.$actions.append(action);
},this);
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。