Data Extraction from a PDF

Hello Team,

Can anyone tell me how can i extract a word which is in between two specified words from PDF.

Thanks in advance,
Regards,
Mamatha.

Hello @MamathaG,

You can extract the whole PDF text and use substring function to extract middle word.

Substring ( PDFText , Index_Of_first_word + Length_Of_First_Word , Index_Of_Third_Word - ( Index_Of_first_word + Length_Of_First_Word))

Regards
Madhura

5 Likes

Hi @Madhuraj,

Thanks for your reply. But please tell me where should i have to mention that substring function.
In my workflow i get that pdf using readPDF activity. Can you please explain the process indetail.

Regards,
Mamatha.

Hello @MamathaG,

After reading PDF file, you will get a string object as output having the pdf text.

You can use substring activity or simply substring function in assign activity after that.

Regards
Madhura

1 Like

Hi @Madhuraj,

Thanks alot. Its working.

Hi,
iā€™m new to uipath
can you please give me some example expression how to write in uipath