How to extract name from signature

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.