I want to give only view option of opened pdf, image, file. User should not download, share and take screenshot from the web browser. I want to implement this functionality in the Angular.
Look at these two answers:
How can I disable print-screen functionality for a webpage in all browsers?
How do i prevent from printscreen of my webpage?
In a native Android/iOS app you can catch this behaviour but in the browser you can't.
What you could do is to prevent text selection: Disable text selection with Angular directive
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.