• How to inject OpenKM version to Word document content

  • 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.
 #48773  by fredczj
 
Hello !
I am looking for a basic feature that I cannot find anywhere now... :(
For the .doc/.docx documents uploaded, a version in OpenKM is assigned. This version should appear somewhere in the document when this one is collected or read by any authorised user.

How can I modify the .doc/.docx content so that it collects the openKM document version?

Thank you!
Fred
 #48808  by jllort
 
You are talking about modifying the document on the fly when downloading. This is not a trivial feature ( it is easiest download as pdf and apply a stamp either modifying the original content ). For it, you need to incorporate a library to modify docx files. I suggest working with docx files either microsoft propietary format ( that not means when you produce docx with Microsoft Office be 100% compliant ).

In case Microsoft Office proprietary format will be better to create a REST service integrated with Microsoft libraries for it ( we have done something in this direction to solve problems with conversion to PDF some rare and malformed documents )

Look in google for "java modify docx".
 #48839  by jllort
 
Take a look at AutomationRule, there are automation for EVENT_CONVERSION_PDF. I think you will need to extend the automation with your own and add in DownloadServer and ConverterServlet. Look how has been done for EVENT_CONVERSION_PDF, you might do something similar.

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.