Surender singh
Surender singh

Reputation: 1

View PDF file and not download

I want the user to view a PDF file without being able to save (Ctrl+S) or print (Ctrl+P) the document. The user should neither be able to copy the text inside the PDF. Is is possible?

Upvotes: 0

Views: 263

Answers (1)

Cody Caughlan
Cody Caughlan

Reputation: 32748

If the document is visible in the users browser then there is nothing you can do to prevent the user from taking a screenshot - so the user can always copy your content in some fashion. Print Screen / Screenshot is basically the same thing.

In terms of not wanting to allow the user to download the PDF - which if you send the PDF as-is to the browser and it opens it inline most browsers offer a download option -- then you should look into rendering the PDF using Javascript.

Upvotes: 1

Related Questions