如何在新标签页中显示PDF,任何人都无法下载或复制内容。在ASP.NET MVC中 [英] How to display PDF in new tab and no one should able to download or copy the content . In ASP.NET MVC

查看:74
本文介绍了如何在新标签页中显示PDF,任何人都无法下载或复制内容。在ASP.NET MVC中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,



我想在点击按钮时在新标签页中显示PDF,没有人能够下载或复制内容。



在ASP.NET MVC中。



点击按钮,我发送路径它存放的地方,之后我需要做什么我没有。



问候,

Abhi



我尝试了什么:



我试过iframe

但是仍然没有得到。

Hello All,

I want to display PDF in a new tab on click of a button and no one should able to download or copy the content.

In ASP.NET MVC.

On Click of a button, I'm sending the path where it's stored, after that what I need to do I'm not getting.

Regards,
Abhi

What I have tried:

I tried iframe
but still didn't get.

推荐答案

使用此Google搜索有很多解决方案:如何在asp.net mvc中显示PDF - Google搜索 [ ^ ]
There are a number of solutions using this Google Search: How to display PDF in asp.net mvc - Google Search[^]


最终,你无法阻止这种情况。为了让客户端完全显示文档,客户端必须下载它。



将每个页面转换为图像也不会阻止客户端下载所有页面图像并从中组装自己的PDF。
Ultimately, you can't prevent this. In order for the client to show the document at all, the client has to download it.

Converting each page to an image also doesn't prevent the client from just downloading all of the page images and assembling their own PDF from them.


这篇关于如何在新标签页中显示PDF,任何人都无法下载或复制内容。在ASP.NET MVC中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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