Gettext from PDF without opening the file

pdf

#1

Hi,
I have a requirement to gettext a particular field from a number of pdf files in a folder.

Problem:
if the pdf file is open then it is working fine. But when the pdf file is closed. Its showing error. It is unable to get that data.


#2

Can you first check if this answers your problem…

https://forum.uipath.com/t/unable-to-read-pdf-files/1173


#3

Thanks for reply.
This is not exactly the problem is.
The problem occurs when I’m trying to gettext a particular field. Like Invoice number from each pdf.
In that case, the file has to be opened otherwise it is showing error.


#4

Does it work for other pdfs?
Can you send a sample file that doesn’t work for you?


#5

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.