How to compare text from pdf with predefined text?


#1

Hello There,
If anyone know how can I compare text from pdf with text which I already have?
for example, I want to check if invoice number in pdf is same as what I am looking for.
Or some lines mentioned in pdf are equal to my hardcoded line?

Please post your response soon.

Thanks,
Prajakta


#2

Hello @prajakta,

Use read pdf text activity to get the text from the pdf. Then use the matches activity with regex to see if there was any match. Hope it helps

Regards


#3

Thank you for very quick solution.how to use regex you have idea?As I am not from programming so difficult to understand


#4

Here is a simple example :slight_smile:
Main.xaml (10.4 KB)


#5

Thank you again.
first time i am using this forum when i click on example to download it gives me page with code.how should i run in my uipath?

please bear with me :slight_smile:


#6

Hello!

Right Click and select “Save as” on the download link.

Uipath team are already working to solve this issue :smiley:

Regards,


#7

Thank you @ andr3y26 and @ Lucas.Pimenta it works :slight_smile: