Facing error while trying to get last line value from PDF
Curious why you’re using Get OCR Text instead of the PDF activities.
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.
Trying to avoid string manipulation.
But using the PDF activities won’t make mistakes. OCR will. OCR is notoriously inaccurate.
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
ok will try
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.
You’re pdf looks like Native pdf. use read pdf text activity and apply regex on the string, you can extract accurate values
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.