Unable to fetch the value from the PDF

Facing error while trying to get last line value from PDF

Curious why you’re using Get OCR Text instead of the PDF activities.

hey

its saying that you are returning an empty text, kindly check if the selector is correct, also you can try use the PDF activities and then use string manipulation to get the last line as you need.

Regards!

I am able to get other values from the PDF. only the last value does not come

1 Like

Trying to avoid string manipulation.

1 Like

But using the PDF activities won’t make mistakes. OCR will. OCR is notoriously inaccurate.

1 Like

please try with PDF activites, it will more reliable in all the scenarios you want, no matter if you need string manipulation because you will ensure that the text is returned correctly

Regards!

2 Likes

ok will try

1 Like

ok will try it

Also, for string manipulation like this, Regex works very well. I’m not very good at it, but a lot of people here are so if you share the text they can give you the expressions to pluck each value out. I recently did a very similar automation so I may be able to help.

2 Likes

You’re pdf looks like Native pdf. use read pdf text activity and apply regex on the string, you can extract accurate values

1 Like

Hello @Anandhi ,

Here you can apply 2 methods. Install the PDf package and use the Read Pdf text activity or Read pdf with oct activity.

Then you can use the respective regex patterns to fetch the data.

Else if the format of the data is static and you are going to use only this layout, then you can get text activity as with some anchor.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.