Hello!
I would like to OCR all PDFs in a folder and write them all to separate txt files.
Can you help me?
Hello!
I would like to OCR all PDFs in a folder and write them all to separate txt files.
Can you help me?
Welcome to the community
Currentfile.Fulname
will give the filepath)currentfile.fullname.Replace(".pdf",".txt")
)Hope this helps
Cheers
Thank you!
I get the following error: “Cannot assign from type ‘System.String[]’ to type ‘System.String’ in Assign activity ‘Assign’.”
OCR_auto.zip (50.0 KB)
Did you happen tot ry above method?
And this error says that you are trying to assign a areay if strings to a string type of variable…please change the datatype of the variable accordingly
Cheers
I have fixed the issue. Check the updated workflow below
For variable named Files
you have declared the data type as String
but it should be Array Of Strings
Since you are trying to read the multiple files from the folder, the variable type should be Array Of Strings
OCR_auto.zip (100.2 KB)