How to extract name from signature

I have the digital signature panel from which I need to extract the name and ID.
Unfortunately, the structure keeps changing. I provided 3 examples of how it can change below.

@Krithi1

First and last can be done…but the middle one I feel you can just do by extraction as the first part before what to extract is also dynamic

Cheers

Have you tried separating rows by keeping them in a list or array and looping through them?

Unfortunately, it doesn’t seem possible to get what you want with a single query

I can use some split functions and write some logic to get the signature I want. But I am concerned about how reliable this is.

We don’t have DU here to extract PDF data, unfortunately.

Are there any other alternatives?

Note: I believe those are the only three different formats it could be in.

What kind of text do you get exactly when you read a PDF with the ‘Read PDF With OCR’ activity?