Hi v m
This should do it. Please first test on a subset of the files in a different directory.
dir = "path/to/directory" files = FileNames["*.pdf", dir] Export[FileNameJoin[{dir, FileBaseName@#1 <> ".txt"}], Import[#, "Plaintext"]] & /@ files
I tried it and worked with no issues at all. This was exactly what I was looking for. Thank you!