Page 1 of 1

Passing document text to document service 'create'

PostPosted:Thu Mar 13, 2008 10:16 am
by barrywalker
Is there currently a way to pass in a document\'s text using the document web service? Since you guys don\'t support an OCR extractor yet, I want to do the OCR client side and pass the extracted text along with the rest of the document when I add it to the repository. However, when I look at the create method, the closest thing I see is the \'keywords\' property on the Document object, but that\'s not really what I want.

Thanks,
Barry

Re:Passing document text to document service 'crea

PostPosted:Thu Mar 13, 2008 4:21 pm
by pavila

Re:Passing document text to document service 'crea

PostPosted:Thu Mar 13, 2008 4:28 pm
by barrywalker
I did - and the Document object only has a contents property, which is the actual document. I need to send the document (a TIFF image as byte[]) and the text contents of that document (string).

I also need to have the text contents indexed for searching.

Is this possible using the current implementation?

Re:Passing document text to document service 'crea

PostPosted:Wed Mar 19, 2008 11:26 am
by pavila
Document.create have only 3 parameters because OpenKM extract the text from the specified document content (MS Office, OpenOffice, HTML, RTF, etc.) So, if you want to extract text from the TIFF image, the OCR should be integrated at server level.

The other option is send document content as a parameter as you say, but need some API modifications. Perhaps can be included in a future release.

Also you can Contact us for Professional Support.