• Editing Files

  • He we will discuss about how to make customization and improvement to the OpenKM source code.
He we will discuss about how to make customization and improvement to the OpenKM source code.
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.
 #11371  by andrew.cy
 
I was just wondering if its possible to edit files in openkm programmatically for example splitting pdf files? I know it can be done in a workflow but can it be implemented in a servlet? Is it best to just use other editing software? Any suggestions.
 #11377  by jllort
 
better if you explain us the problem that you want to solve, and then we can give to you some possible solutions.
 #11426  by andrew.cy
 
I want to split a pdf file using a tab document extension and storing the split files in the current folder open in the filebrowser
 #11451  by jllort
 
That's seems not trivial. Let's talk something more about it I would like image the screen. How have you imagine it ?

On pdf preview tab, the problem is that really you're seend a swf, in that scenario you can not doing any type of edition.
You consider something easy like indicating number of pages ? or something more complex like indicating page and some text to page some text ?
 #11477  by andrew.cy
 
I would like to use a tab document extension possible the preview tab and grab the page numbers from a TextBox and generate a pdf file with only the pages indicated by the user.
Last edited by andrew.cy on Tue Jul 05, 2011 5:30 pm, edited 1 time in total.
 #11480  by andrew.cy
 
Some last couple questions. Does the get function from the document service return the content of the file? Also, there is no create method in the document service how would I create the file dynamically.
 #11494  by jllort
 
You must create your own a servlet for it. Take a look at FileUploadServlet.java and DocumentServlet.java

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.