Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Protect pdf document from download
4 replies. Latest Post by Maud on June 3, 2009.
(0)
Vinayak_Ait
Member
5 points
16 Posts
05-28-2009 8:45 AM |
Hi,
I uploaded pdf file to server so that my site's visitor only able to view pdf but should not be able to download, save, copy pdf. and not have a temp file of the pdf ever be downloaded to their machine.How can I get above behaviour and protect pdf from download?Thanks in advance
jay nana...
Contributor
3388 points
624 Posts
05-28-2009 9:19 AM |
Do you want to implement this using Silverlight?
then check this:
http://www.amyuni.com/silverlight/index.php
if you want to do it with Flash:
http://board.flashkit.com/board/showthread.php?t=745702
metal
Participant
1243 points
262 Posts
05-28-2009 9:56 AM |
If the user can view a PDF then they have already downloaded it, In the same way if you view an image on a web page it is downloaded to the users machine before being displayed.
The only way around this is to not use raw data, the common solution for images is to use flash/silverlight to display an image that is a propriatory format, thus if a user is able to intercept the flash/silverlight downloading the iamge data they can not load it into photoshop as photoshop will not recognise the format.
So to reach your requirements,
1. Can view PDF
2. can not download PDF
3. can not copy PDF
4. no temp files
Number one, you have to supply the a client application (i.e. silverlight) that will interpret 'some' data and display it to appear as PDF
Number two, the PDF file does not reside on the server as reachable, instead a web service will stream the data.
Number three, I assume you mean 'can not take a copy', if at any time your web server sends PDF data (file or streaming) the users machine can intercept and copy/save that data.
Number four, really the same as three and it doesn not matter if there is a temp file if it is your propriatory data format describing a PDF as without your client application (i.e. silverlight) it is useless.
I hope this makes things slightly clearer.
bottom line, never trust a client to do what you WANT it to do, because it can do what it damn well pleases.
05-28-2009 12:32 PM |
Thanks for reply,
Can someone tell me how to embed pdf file in silvrlight so that my site's visitor can view the pdf but should not be able to download pdf file.
It's urgent,
Thanks in advance
Maud
3276 points
453 Posts
06-03-2009 3:19 AM |
Agree with Jay, convert pdf to xps on serverside and display in silverlight.
sample
http://www.amyuni.ca/PageTurnPdf/Default.html
article
http://www.amyuni.com/silverlight/article.php