Page 1 of 1

Editing Files

PostPosted:Thu Jun 23, 2011 4:35 am
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.

Re: Editing Files

PostPosted:Fri Jun 24, 2011 6:44 pm
by jllort
better if you explain us the problem that you want to solve, and then we can give to you some possible solutions.

Re: Editing Files

PostPosted:Thu Jun 30, 2011 6:22 pm
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

Re: Editing Files

PostPosted:Sat Jul 02, 2011 1:39 pm
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 ?

Re: Editing Files

PostPosted:Tue Jul 05, 2011 5:01 pm
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.

Re: Editing Files

PostPosted:Tue Jul 05, 2011 5:10 pm
by jllort
That can be done without major problems

You can contact with us for doing it http://www.openkm.com/Contact and refer to this post
Or take a look at http://wiki.openkm.com/index.php/Extension_Guide and here http://wiki.openkm.com/index.php/Developer_Guide and do yourself

Re: Editing Files

PostPosted:Tue Jul 05, 2011 5:32 pm
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.

Re: Editing Files

PostPosted:Fri Jul 08, 2011 7:54 am
by jllort
You must create your own a servlet for it. Take a look at FileUploadServlet.java and DocumentServlet.java