converting jpg/jpeg image
> into doc files. The jpg files contain text and the text should be
> converted into doc format.
I mean the jpg files are images of text - eg from a scanner?
And you want to perform a kind of OCR function on them to convert
it to text, but in a Doc format (I assume you mean Microsoft Word .doc
and not any other proprietary format called .doc - there are several!)