Prevent printing previews even with browsers print capabilitiy

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
mamad
Expert Boarder
Expert Boarder
Posts: 144
Joined: Mon Jun 25, 2018 5:13 am

Prevent printing previews even with browsers print capabilitiy

Post by mamad »

Hi guys
Im using openkm 6.3 community
I want to disable all the ways a user can print a preview of a document even print by the browser itself (with ctrl + p or tools -> print menu ).I have disabled flexpaper print and download buttons but user can still print the preview with browsers print capability.
Is it possible at all ?
Thanks in advance
kaajsoft
Junior Boarder
Junior Boarder
Posts: 25
Joined: Thu Apr 16, 2020 7:41 am

Re: Prevent printing previews even with browsers print capabilitiy

Post by kaajsoft »

You must disable it by javascriot.
Or designe a white page for print media.
But normaly when something is in a user monitor is for him.
jllort
Moderator
Moderator
Posts: 11598
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Prevent printing previews even with browsers print capabilitiy

Post by jllort »

When you are showing something in the browser is totally impossible lock download or capture screenshot etc... the best way to control documents is:
* adding stamps with the user name and date in all the documents ( for preview and download )
* preview images either full documents like PDF ( and also stamp them ) -> this is also a good protection

For this matter must modify CE or go to a professional one which comes by default with the possibility to customize download and preview. If you wish to go ahead with CE I can try ty guide about what sections of code should be modified ( I advance is not a trivial modification -> because also should implement stamp )
mamad
Expert Boarder
Expert Boarder
Posts: 144
Joined: Mon Jun 25, 2018 5:13 am

Re: Prevent printing previews even with browsers print capabilitiy

Post by mamad »

Well, thank you guys
Post Reply