Searching PDF

i have a client that wants to be able to search PDFs (their contents) for keywords via Flash…im guessing i have to parse the PDF and convert it to XML or text, and then search that?

any other thoughts on how to accomplish this?

btw, its a local app in flash and not web based.