• open document in own java software

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #49576  by drago
 
hello everybody,
i want to show in my java project a list of pdf-documents located in openkm. With .findByKeywords() this is no problem. But now i want make the list clickable: when the user is clicking on doc1, i want to open this (without logindata) document. Have somebody idea to implement this?
I tried it with directlink (http://user:password@openkm_host/OpenKM/Download?path=/okm:root/test/test.pdf) but then the browser starts to download the pdf, that is not what i want. My next idea is to download it in temporary windows path, open it and delete after close, but is this the best way?

Thank a lot.
 #49586  by jllort
 
You should use man-in-the-middle concept -> use always the same user but without sharing credentials I suggest doing all the action with SDK for example downloading file with SDK using the getContent method ( in combination with your own Servlet ) https://docs.openkm.com/kcenter/view/sd ... getContent

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.