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?
Asked
Active
Viewed 198 times
1 Answers
1
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.

Cody Caughlan
- 32,456
- 5
- 63
- 68
-
Couldn't someone still download the rendered PDF by tracing the JavaScript code? – Froopy Nov 10 '17 at 13:20
-
1@Froopy yes, thats still possible. Ultimately there is no end-all solution; at best you can just force the user to jump thru more hoops. – Cody Caughlan Nov 10 '17 at 13:23