extracting data from pdfs

Hi, I am trying to import data from some pdfs, but stumbling. Tika Parser will import all the PDF files in a directory but how do I loop through them and process them one by one

Thanks

Steve