PDF File reading and extract specific sentence containing the key words

Hi
I want extract data from a vendor manual and I have specific key word list. Is there any way to automate read pdf file and write following out put to Excel?

  1. page no and line no that contains keyword
  2. extract the sentence that contains keyword

@Mili_Rajakaruna

Welcome to the forum :wink:

Read_PDF_WF.xaml (46.3 KB)
Here we go!

  1. Read the pdf with the read pdf activity

  1. Split(pdfText,Environment.NewLine(0))(5) - This sentence means that I an splitting in lines and taking the fifth line.
    *note that this factura variable is a string array

  2. If you wanto to extract just some values you can find an index word in this case KW, ten characters after that specific words and taking 23 caractes of it.


Happy automation. :slight_smile:
don’t forget to like us!

2 Likes

Thank you very much for your reply :slight_smile: .

1 Like

Thanks to you,

let us know if you need help, Don’t forget to mark the post as solved if your question was answered.

regards

image
why do i get this error ?

Hi @Mili_Rajakaruna

because you don’t have that activity installed

please goto:

image

and install

I would recomend to install all packages for now in order to test this solution, please install just this one and later you can install them all.

Look:

Don’t forget to like us
Happy automation.

All good. this solved the problem and had install Microsoft activity package as well. Thank you @beesheep

1 Like

Amazing! its a pleasure to help, come back soon.

Regards,


Don’t forget to like us :heartpulse:
Happy Automation! :sunglasses:

image

I get this error :frowning: