Page 1 of 1

Show if document is signed

PostPosted:Tue Sep 04, 2018 6:10 pm
by DrydenK
Hi

besides downloading and opening a document, is there a way to see if a document has been signed?

We intend to upload a reasonable quantity of documents, and most of them will be signed. To download a document just to check if it's signed is not very practical. Is there a quick way to check/see if a document was signed in the OpenKM interface? I couldn't find a way to do so.

Tks,

Roberto
PS: Using OpenKM 6.3.6, build 87d181f, running in an Ubuntu 18.4 server

Re: Show if document is signed

PostPosted:Wed Sep 05, 2018 11:08 am
by jllort
There's and OpenKM flag in the table OKM_NODE_DOCUMENT what indicates if a document is signed or not. Also, there's a method in OKMProperty to set signed. Take a look here https://docs.openkm.com/kcenter/view/ok ... #setSigned

When document is signed by OpenKM windows signature client it is also set this flag, but what happens with documents uploaded? Really nothing, we do not validate by default if documents uploaded are signed or not, the reason? because not everybody will be interested in it and it might consume a lot of resources check it for each document uploaded or modified.

The solution for it is to create an Automation action to check if the document is signed ( focus in PDF files ) using a JAVA library to check if exists signature into PDF file ( because OpenKM comes with Itext version into you can try https://stackoverflow.com/questions/174 ... with-itext )
https://docs.openkm.com/kcenter/view/ok ... ation.html

I suggest first try the code from scripting.

Re: Show if document is signed

PostPosted:Wed Sep 05, 2018 3:07 pm
by DrydenK
Ok. In the end, not worth the hassle.

Tks.

Roberto