Gettext from PDF without opening the file

Following this as I have the same issue. I have an “Unprocessed” folder, with PDFs, that I need to loop through, extract fields to datatable, then append to an excel. The process doesn’t work unless the file is open and I haven’t found a good method of opening each file at the beginning of the process, as I can’t predict the file name.