在 pdf 查看器中禁用复制和打印选项

葡萄酒编码器

我使用标签来显示文档(文件)。在那个 pdf 文件显示有打印和下载选项时,我需要在 pdf 查看器中删除该打印和下载选项,有什么办法可以隐藏它。

下面是我查看pdf文档的html代码

<iframe class="iframemargins" src="{{ url('uploads/chapters/Author.pdf') }}" 
        title="PDF in an i-Frame" frameborder="0" scrolling="auto" width="100%" 
        height="600px">
</iframe>

有没有其他方法可以显示 pdf、doc、txt、rtf 等文件。

葡萄酒编码器

我在这找到了一个解决方案......这是我得到解决方案的链接

隐藏嵌入 pdf 周围的工具栏?

我已经更新了我的 html 代码如下及其工作

<iframe src="{{ url('uploads/chapters/Author.pdf') }}#toolbar=0&navpanes=0&scrollbar=0" title="PDF in an i-Frame" frameborder="0" scrolling="auto" style="width:100%; height:100%;"></iframe>

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章