开发者

View pdf on a asp.net page

开发者 https://www.devze.com 2023-01-06 12:26 出处:网络
I need a secure way to display pdf documents so that the开发者_运维技巧 viewer can\'t print, copy or save the text. Something like the amazon book preview. It will be placed on a asp.net page.You can

I need a secure way to display pdf documents so that the开发者_运维技巧 viewer can't print, copy or save the text. Something like the amazon book preview. It will be placed on a asp.net page.


You can use Ghostscript (http://www.codeproject.com/KB/cs/GhostScriptUseWithCSharp.aspx) to convert the PDFs individual pages into images for display. This would prevent them from being able to download the whole PDF document or copy the text as text. You could also add a watermark or use a lower resolution image. However, even with the amazon viewer you can always grab the image e.g. via screenshot.

0

精彩评论

暂无评论...
验证码 换一张
取 消