Read PDF document

Hi All,

I am reading PDF document and the output of that I need to check the keywords is available or not, its like 10 keywords.
Shall I place if statement with or as condition. Any suggestion how to go?

Thank you

Hey @Shatran
You can create a List of keywords and loop through it to see if each one is in the PDF text. You can do it like this:

  1. Put all your keywords into a List<String>, like: {"keyword1", "keyword2", "keyword3", ..., "keyword10"}.
  2. Use a For Each loop to go through each keyword.
  3. Inside the loop, use an If activity to check if the PDF text contains that keyword with text.Contains(CurrentItem).
1 Like