I have a problem with getting an element from a pdf file

when I try to get the element from the pdf file with the get text activity, it does not allow me to select the element I want, it selects several elements of the pdf.

@Renenobal

Welcome to the Uipath Community.

Is it image or what ? If possible could you please share that pdf file with me. Will check and update you.

@Renenobal

Please send me downloaded PDF file.

im a new user, i cant upload the file here, when i try the output message it`s: Sorry, new users can not upload attachments.

Hi @Renenobal

Welcome to uipath Community buddy

To get the right value or a right text which is been selected as element use, anchor base activity…
this will make sure that you will be getting only the element corresponding to the the anchor that you have chosen. and it wont go for other elements
for more info on anchor base element kindly have a view on this. and follow the procedures buddy



It will work for sure
Cheers @Renenobal
1 Like

This pdf looks like a native pdf buddy @Renenobal
So we can handle this two methods
–one we can use scrape relative activity, where we can get the text we want by selecting a region, scraping a region relative to a element…and this would for sure if we are trying to get a specific term or specific value and for more info kindly have a view on this
@Renenobal

or we need to use Read pdf text activity and get the output as string

1 Like

@Renenobal

Yes i checked the file and UIPath is not able to identify any elemets in that PDF.

use Read PDF text activity and will give you output as ‘string’. And then use String manipulation functions or Regular expressions to fecth required details from the file.

thank you, now, what String manipulation functions do you recommend?

2 Likes

we can use scrape relative activity buddy
@Renenobal, inorder to get a specific term.

if we are trying to get the whole pdf as a text then we can use read pdf text activity and make the string manipulation to get the term we want…but i hope that takes long process to segregate the term we want with string manipulation…and that would work as well…
Cheers @Renenobal

@Renenobal

You can use below string functions.

  1. Substring
  2. IndexOf
  3. Split

Etc…

You can find same functions in other languages also and there is nothing new in this.

I am going to put to work, I am very grateful for your help, I will be commenting on how I am doing. thank you

1 Like