Added code to convert pdf files to text files in a directory