Before you all start your rants... I know already that whatever I do there will always be a way to download pictures and PDFs from a webpage.
But let's assume my users are not that tech savvy and only know the basics.
I've been asked to "disable" the download option when showing some images and PDFs in our webapp.
I managed to disable the context menu for the images with a single line of CSS but I am having trouble with the PDFs.
What I have tries so far:
- With the tag, move the element up to hide the toolbar. Worked OK for Firefox, then I discovered that other browsers just display the download button on hover
- Cover the element with a transparent div. Worked for FF and Chrome. Doesn't work with IE and Edge (the embed element is always put on top of the rest)
- Same as two but with iFrame. IE doesn't show the iFrame at all when behind the
- I've used SwingLabs PDF-renderer to convert the PDF to image. The end image colors are all wrong.
I have limited resources due to security restrictions and I'm running out of ideas. Any suggestions?
NOTE: The users able to see these PDF need to authenticate and have special permissions, so no worry about fiddling.
Aucun commentaire:
Enregistrer un commentaire