Actually a tool to save a pdf as plain text would be fine too.
Scripting PDF content from ActionScript
You can read more here.
In the more general case, you would have to load and parse the PDF file: http://www.adobe.com/devnet/pdf/pdf_reference.html
I don't know of any available ActionScript libraries to do this, though I imagine you have already looked.