Test pdf data against database and or excel

Hello Everyone,
I am in need of implementing a testing solution to validate data on a pdf document against an excel feed. The pdf is developed using a .ps file. My requirement is to validate if the pdf file has all the contents that the .ps file has. For e.g Checking the Name, Address, etc. can someone please throw some light on this and help me with some solution to handle this. I tried pdfbox, but it just searches for a text. Please help.
Thanks and Regards,
Shyju John

What did you mean by “just searches for a text”?

Hi Alex,
Thanks for your quick response. My question is, if I have 2 columns in an excel with the first column as for e.g the tags I need to look for and the second column the actual search text.
Entity | value
Name | XYZ

Thanks and Regards,
Shyju John

I was able to test get this work, but when i try to search for a whole paragraph, the test fails, since it says the search string is not present. I know there is a limitation of 255 characters when we do a search. My requirement is to validate a whole paragraph in pdf. Do we have any solutions for this?