Added functionality to only parse files with a PDF extension.