在ASP.NET中打开没有保存和打印选项的PDF文件 [英] Open PDF files without save and print option in ASP.NET

查看:99
本文介绍了在ASP.NET中打开没有保存和打印选项的PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我想在我的网页上打开PDF文件,没有保存和打印选项。

但是无法做到那个。

默认情况下保存并打印选项。



我使用VS 2005.



我可以使用任何第三方控件(免费)吗?



即使是浏览器工具栏也可以保存或打印PDF。



请帮帮我。

Dear All,

I want to open PDF file in my webpage without save and print option.
But not able to do that.
Save and Print option comes by default.

I am using VS 2005.

Is there any third party control (free) which i can use?

Even browser toolbar come to save or print PDF.

Please help me out.

推荐答案

打开PDF文件的是客户端机器,使用或浏览器内置功能(Chrome)或已安装的应用程序(如Adobe Reader) - 由mime类型(IE)识别。

如果要禁用保存和打印,则必须修改PDF文件的安全设置本身。

您可以使用以下其中一个库:

http:// pdfsharp .codeplex.com / [ ^ ]

http://sourceforge.net/projects/itextsharp/ [ ^ ]
The one that opens the PDF file is the client machine, using or the browsers build in capabilities (Chrome) or installed application - like Adobe Reader - that identified by mime type (IE).
If you want to disable save and print you have to modify the security settings on the PDF file itself.
You may use one of these libraries for that:
http://pdfsharp.codeplex.com/[^]
http://sourceforge.net/projects/itextsharp/[^]


试试这个< br $> b $ b

如何在asp.net网页中打开PDF文档而不要求保存/打开/ cacel对话 [ ^ ]


为什么不是指向您网站或虚拟目录中的pdf的iframe。



你也可以使用:



http://viewerjs.org/ [ ^ ]







https://mozillalabs.com/en-US/pdfjs/ [ ^ ]
Why not an iframe pointing to the pdf inside your website or virtual directory.

You could also use:

http://viewerjs.org/[^]

or

https://mozillalabs.com/en-US/pdfjs/[^]


这篇关于在ASP.NET中打开没有保存和打印选项的PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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