Inside for loop read pdf text into a string and add one more for loop for looping thru each keyword from a csv file…
Search for a keyword in a string read from pdf. If found, exit from the loop and rename the file.
For each file in folder
boolFound = false
Stroutput = Read pdf text activity to read the pdf
For each value in csv
If stroutput.Contains(value)
boolFound = true
Exit from for loop
End if
End for loop
if boolFound = true
Rename the file
End if
End for loop
I’ve almost got this but I am running into an issue, which I think would be solved with a counter but I am not quite getting my head around it.
I currently have the For each file in folder - > Check the CSV → For Each Row in the CSB → Get the keywords its into an array → For each Item in the Array → Check it against the document.
My problem is, if I have 3 words in my array, it’s searching for the first word, 3 times, instead of looking to the second word, then the third word.
I have similar problem. I need to search specific keywords in PDF document. basis the search, i want to insert found words in one column of excel and not found words in another column of same excel sheet.
please let me know in case your workflow would help