You may have to do some kind of OCR conversion on it...I really don't know. My guess is that the conversion to pdf doesn't have any clue that there is text in the original image. After all, the original image could be a butterfly. It just converts the .tiff image into a .pdf image (and I'm kind of making a lot of assumptions).
So, i would start by googling OCR and seeing how to do that. It's something I have certainly never done, so I can't help you any more than that.
ramesh poorella wrote:after converting tiff to pdf. i should able to search a string.
My question still is: Why do you think that? Searching for text is an operation that simply doesn't apply to images as present in files. Converting them to PDFs doesn't change that one bit; in fact, it makes image processing operations -like OCR, assuming that's what you have in mind, I can't tell from your previous posts because you have given so little detail- harder.
Joined: Mar 22, 2005
please suggest how to do in my code
You should delete that code, because OCR -assuming that's what you intend to do- has nothing to do with PDFs. If OCR is in fact what you intend to do, use the Search functionality to search for "Tesseract", and you'll find some recent discussions about how to do OCR on images in Java.