Page 1 of 1

How to gennerate dowanloadable url for preview if have document's uuid

PostPosted:Mon Aug 17, 2020 9:17 am
by nhan@intra.co.kr
I wannt to integrate preview function into another website, openkm document guild using iframe and input document url, my question is how to generate document downloadable link for preview when know document's uuid. I have asp.net webserver and the webserver can use .net SDK.

Re: How to gennerate dowanloadable url for preview if have document's uuid

PostPosted:Fri Aug 21, 2020 7:58 am
by jllort
Depending on the document type the URL it changes should investigate the most relevant combinations. I suggest try with several document type and with browser tools you can watch the exact URL.

Also you can take a look at the source code:
https://github.com/openkm/document-mana ... eview.java
https://github.com/openkm/document-mana ... rvlet.java ( used a lot for preview )
https://github.com/openkm/document-mana ... rvlet.java
https://github.com/openkm/document-mana ... review.jsp
https://github.com/openkm/document-mana ... pp/preview

In case of professional version we have public preview service, but I think in community edition we have not implemented preview in the same manner and almost resources require authentication -> https://docs.openkm.com/kcenter/view/ok ... tions.html ( we do not have this kind of documentation in community edition, I'm quite sure it is not implemented in the same manner )