Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I need your suggestion and possible way to achieve bellow mentioned functionality.

I am developing functionality of Display PDF Document using ASP.NET MVC using libraries like PDF Sharp, where i am displaying Secure Password protected and Watermark PDF file in Browser.

Challenge:
Where PDF document should opened in browser without prompting password and at the same time if some one downloads the file and tries to open from machine it must ask password.


Please help me or suggest me any possible way to achieve functionality. By using any plugin or using any other library which support this functionality.

Thanks in advance.

What I have tried:

Please help me or suggest me any possible way to achieve functionality. By using any plugin or using any other library which support this functionality. I am looking for any open-source or paid service which support this functionality.

Thanks in advance.
Posted
Updated 4-Apr-16 3:07am
v2

1 solution

You can't. You have no control over which application on the client side opens the PDF for viewing. If you don't want a password prompt, the only way to get around that is to save the PDF without that security on it and send that PDF file to the client.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900