How To Check if String Exists in PDF File?

Hello @prasath17 , I’m not able to include this item in For Each Loop Activity.
Could you please help to add it in your shared Example :
In pdf Get the string avilable page number in to excel - Help / Robot - UiPath Community Forum

@hsendel - please show me what you have tried so far ? My 2nd screenshot is from that Workflow if you look closely.

Please provide couple of screenshors of your assign statements.

Hello @prasath17 , I have added ToString before Count String in RegEx formula, Error disappears but not able to print the corresponding value.

How to keep only one value instead of printing same value “5” each time ?

Is it the wrrong place where I put this IntOccCount ?

@hsendel - you have to put that within if statement under then condition…so that it will print only when there is a match…

You are reading each page and text is searched on each page…so you get total occurrences on each page.

In the given example…Certificate was found in page 1 and page 5…so if you place your assign statement under then condition it will print only 2 times when there is a match.

Please see below, it printed only 2 times when there is a match…and the word certificated had 2 occurrences on each page(verified)

1 Like

YES @prasath17 , Thanks a lot for those details , I really appreciate how you’re providing hints and solutions :+1:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.