Page 1 of 1

How to dsiable or hide print and copy button in preview

PostPosted:Sat Sep 11, 2010 12:45 am
by riephone
Hi, I want to disable or hide print and copy button in preview, so the doc can be protected.Does anyone know how to do it?
Thanks!

Re: How to dsiable or hide print and copy button in preview

PostPosted:Sat Sep 11, 2010 5:58 am
by jllort
I don't know if it's possible, first must take a look at oficial viewer website at http://swfviewer.blogspot.com/ to know if there's some param to hide it.

If it's possible then it's only needed to make minimal changes on UI code at Util.java class where's defined the component.

Re: How to dsiable or hide print and copy button in preview

PostPosted:Tue Sep 14, 2010 3:04 pm
by riephone
jllort wrote:I don't know if it's possible, first must take a look at oficial viewer website at http://swfviewer.blogspot.com/ to know if there's some param to hide it.

If it's possible then it's only needed to make minimal changes on UI code at Util.java class where's defined the component.
thanks jllort! i find a way. It may not so good. I use SWiX to edit zviewer.swf and delete print and copy button from it, then ues this
new to replace the old zviewer.swf.

Re: How to dsiable or hide print and copy button in preview

PostPosted:Tue Sep 14, 2010 4:26 pm
by jllort
it's great

Only a question because I'm not a flash developer, could be easily added some popup warning - text or similar - meanwhile document is not yet downloading ?

Re: How to dsiable or hide print and copy button in preview

PostPosted:Tue Sep 28, 2010 2:48 am
by riephone
jllort wrote:it's great

Only a question because I'm not a flash developer, could be easily added some popup warning - text or similar - meanwhile document is not yet downloading ?
I did not see this form these days,sorry to be so late! I am not a flash guy too, so i can not reply your question. i give you the zviewer.swf i update. i try to use FlexPaperViewer.swf now,it has more parameter to control those buttons in the view.

Re: How to dsiable or hide print and copy button in preview

PostPosted:Tue Sep 28, 2010 1:59 pm
by jllort
In OpenKM 5.0 we've added the possibility to choise between zviewer or flexpaper.

That's for the update

Re: How to dsiable or hide print and copy button in preview

PostPosted:Wed Feb 02, 2011 5:34 pm
by epvaldez
Hello,
I need restrict print and copy buttons,
I'm using flexpaper, but ¿can i disable print and copy buttons?

Cheers

Re: How to dsiable or hide print and copy button in preview

PostPosted:Wed Feb 02, 2011 8:16 pm
by jllort
I'm not sure if it's implemented on version 5.1 or in 5.0.1 ? take a look at profile it must be there.

Re: How to dsiable or hide print and copy button in preview

PostPosted:Thu Feb 03, 2011 4:02 pm
by epvaldez
I'm not sure if it's implemented on version 5.1 or in 5.0.1 ? take a look at profile it must be there.
Hello,
I tried it with both Openkm 5.0 and 5.0.1 and only found the file: js/flexpaper/flexpaper_flash.js, but how I can configure it to disable or hide printing and copy buttons? or Should I configure Openkm.cfg?

best regards,

Elvis V.

Re: How to dsiable or hide print and copy button in preview

PostPosted:Fri Feb 04, 2011 10:09 am
by jllort
The features is only in version 5.1 that's not yet released, sorry. For doing it with flexpaper you might compile it ... to much work for some minimal change. I suggest to download the file zviewer_del_button.rar, use zviewer and replace the original file into OpenKM for this.

It's possible on version 5.0.2 we include it, but it'll be because some customer has demanded, if not might be specting on 5.1 that's yet included by default. Sorry for it.

Re: How to dsiable or hide print and copy button in preview

PostPosted:Wed Jan 06, 2016 6:21 am
by lancyld
Dear riephone,
zviewer thing worked like a breeze. OpnKM is marvellous. Hats off to the Team. One small query.

Can you please modify the zviewer a little more so that "PrintScreen" & "Alt+PrintScreen" until the viewer is ON

Also I found out a new problem with zviewer powerpoint files some open but most of them do not open.

I also reverted back the original extensions of zviewer and flexpaper. But then too facing powerpoint problems (check attachment). Where as all these files are opening in LibreOffice.

I'm still testing for other file types. This started only when I replaced the swfs

Re: How to dsiable or hide print and copy button in preview

PostPosted:Thu Jan 07, 2016 12:37 pm
by jllort
Check if power point can be converted to pdf by openoffice ( use latest openoffice version that could be the problem or also could be a problem with the powerpoint format, latest version could not be totally compatible with openoffice supported formats ).