I want to search the stings in pdf and get the page number
Try using Regex, if you know the patter of page number i.e. Page 1 of 4 etc.
You can refer to this post for a solution:
i wan to this type any one help to send a program