PDF parsing code

Does anyone know of code (in LUA) to parse text in a PDF file? I’m working on a PDF viewer and I’d like to be able to search for text in the page.
TIA