Page 1 of 1

How to disable PDF download function in preview window??

PostPosted:Fri Oct 01, 2021 6:39 am
by BenjaminSu
Hi
I installed OpenKM Community Version 6.3.2 (Build 8289) and Open Office 4.1.10 in Windows 10.
Now I had updated the Open KM to Version 6.3.9 and still found one issue as below.
I had disabled the download and dowload PDF function for menu and toolbar in user's Profiles.
However, I need to provide preview function for user. And therefore, user could still download the document by PDF foramt in preview winodow.
Does someone know hwo to disable PDF download function in preview window?

Thanks a lot

Re: How to disable PDF download function in preview window??

PostPosted:Sun Oct 03, 2021 8:10 am
by jllort
I suggest to upgrade to version 6.3.11

It is not possible to disable this function. It will be a large explanation about how to protect documents from preview what usually is what you are looking for. Basically, I suggest 2 options:
1- stamp documents in preview ( with the name of the user and date )
2- preview each page as images ( this feature is only available from professional edition )

Consider when previewing something in the browser is because you are locally downloading ( nothing that you preview will not be a local download ) -> it means with browser addins is quite easy to download files -> forget the idea to protect in this manner -> the best and realistic option is to mark the document or change the format ( all the other directions are wrong if you are looking for protection because with browser addins a regular use can quickly download everything )

Re: How to disable PDF download function in preview window??

PostPosted:Mon Oct 04, 2021 12:55 am
by BenjaminSu
Thank you jillort. Regarding to your suggested 2 options, do Community version support the functions? (I had checked the comparision of versions and found that it seems that Community version can't support Stamp and watermark images.)

Thanks

Re: How to disable PDF download function in preview window??

PostPosted:Sat Oct 09, 2021 6:17 pm
by jllort
Currently, CE does not support this kind of feature and we have not still in our roadmap move from professional to CE.

Re: How to disable PDF download function in preview window??

PostPosted:Fri Nov 05, 2021 7:01 pm
by jllort
I suggest upgrading to the latest OpenKM version and updating your LibreOffice version.

Re: How to disable PDF download function in preview window??

PostPosted:Tue Nov 09, 2021 6:08 am
by stiebs
I won't disagree with what jllort has already stated - simply disabling the download button does not stop a user from downloading the PDF - it just makes it more difficult.

If all that you want to do is make it more difficult, then there is a small edit you can make in the PDFjs code:

Edit tomcat-x.xx.xx/webapps/OpenKM/preview/pdfjs/viewer.css and add the following code:
Code: Select all
.download
{
    display:none !important;    
}

.print
{
    display:none !important;
}
This will hide the download and the print icons, but an astute user will be able to find their way around it.

Re: How to disable PDF download function in preview window??

PostPosted:Sat Nov 13, 2021 9:18 am
by jllort
I will investigate if possible to make it more configurable from OpenKM, thanks for your aproach stiebs