Unable to extract first name and last name for diiferent PDF files

i had uploaded a pdf and selected first name and last name.
if i run bot with same pdf i am able to extract the data.
if i run bot with other pdf which had first name and lastname its not extracting that field.
i had used form extractor. Can any one help me to clear this issue

Hi!

please can you confirm me that the text position of the first and last name is same for both the pdf’s?

if yes, you need to change the selector.

if possible show me the selectors for both the pdfs. and also mention first and second pdf file names!

Regards,
NaNi

text position for first and last name is same for all pdf,
but the name size is increasing
example: i had used custom area for first name “jiaying” lastname is “kuang”


in next pdf i get different name and position is same but name changes . if first name is “mitheshreddy” and lastname is “bolla” i had “mitheshreddy bolla” in pdf. its not extracting my name

Hi

Include the Regex extractor as well so that the one which has high accuracy will be fetched

Cheers @Mithesh_Reddy_Bolla

1 Like

Have a look at this

((?<=Beneficiary.:).*(?=))

if you want first and last name separately use split.

Regards,
NaNi

1 Like

yes ,regex is working .

can u give me regex for last name seperatly

Use split.

if your RegEx variable is Reg,

then use another assign and crate a variable LastName

LatName=Reg.split(" ",.ToArray)(1)

this will give you the LastName

Regards,
NaNi

1 Like

(post deleted by author)

(post deleted by author)

issue while getting last name

if the above split function is not working…

lastName=Reg.Split(" ".ToCharArray)(1)

Regards,
NaNi

1 Like

actually i am using c# process. i am getting error
image

Show me the error?