如何在asp.net中的pdf文件上禁用鼠标移动和KeyBoard [英] How to Disable Mouse Movement and KeyBoard on pdf file in asp.net

查看:67
本文介绍了如何在asp.net中的pdf文件上禁用鼠标移动和KeyBoard的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我想在asp.net中打开PDF文件。

路径类似:http:// localhost:1504 /ABC/123.pdf



我想在这个PDF文件上阻止鼠标和Keyborad。



我该怎么办?。



请帮助我..

Hello

I want to open PDF file in asp.net.
Path something like : http://localhost:1504/ABC/123.pdf

I want to Block Mouse and Keyborad on this PDF File.

how can I do ?.

Please Help me..

推荐答案

没有鼠标移动和键盘在PDF文件中。 PDF文件是一份文件。 :-)



更严重的是,没有在ASP.NET中打开PDF文件这样的东西。 PDF文件可以在浏览器中打开,但这不是标准化的。 PDF不是W3标准的一部分。所以,这一切都取决于浏览器,通常在一些插件中实现,这个功能永远不会得到保证。没错,你绝不能假设PDF可以在浏览器中打开。面对没有任何PDF查看器的系统是完全可能的。唯一保证的可能性是将文档保存在文件中,这根本不是问题,因为任何人都可以保存并稍后查看。



但最重要的是事情是:如果真的有可能做你想做的事情,它将成为巨大的滥用和对大多数基本客户权利的不可接受的限制。你没有这种可能性是唯一的好处。当然,您可以使用这样的功能创建自己的浏览器插件,但是谁想要使用它?这与向被逮捕的一些人发表手铐广告有关。 :-)



-SA
There is no "mouse movement and keyboard" in a PDF file. PDF file is a document. :-)

More seriously, there is no such thing as "open PDF file in ASP.NET". PDF files can be opened in browser, but this is not standardized. PDF is not a part of W3 standards. So, it all depends on browser, usually implemented in some plug-ins and this feature is never guaranteed. That's right, you should never assume that PDF can be opened in a browser. It's quite possible to face a system without any PDF viewer at all. The only guaranteed possibility is to save a document in a file, which is not a problem at all, because anyone can save it and view later.

But the most important things is: if it was really possible to do what you want, it would became a huge abuse and unacceptable limitation of most basic customer's rights. It's only good that you don't have such possibility. Of course, you could create your own browser plug-in with such "feature", but who would like to use it? It would be the same as addressing to some people under arrest with advertizement of handcuffs. :-)

—SA


这篇关于如何在asp.net中的pdf文件上禁用鼠标移动和KeyBoard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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