Pdf Parser

Hey, so what would be the best way to parse a PDF file in Yii. I want to load a PDF file and search the file for a string, or extract the text, save it to the database, and then do the search against the database.

Any ideas? Or, at least, what would be a good core PHP way of doing this? Thanks.

Does the first answer here help?