I’m assuming the pdf is a scanned pixelated document.
So, you need to find the signature box first. This is the tricky part. I suggest getting your xaml to scroll the document using PgDwn key or PgUp if you start at the bottom, for example. And, you will need to scroll every page until you find it.
Then, use Find Image to find text near the signature box, such as the “Signature” part or some part of that text. You will need to play around with the Zoom of the document and Accuracy of the Find Image until it is consistent. Note: your xaml should set the Zoom each time.
Once you store that to an element variable from the Find Image, you use the Set Clipping Region (there are examples of that on the forum). This will set a new element box around the signature box; use the Highlight activity until you know your new clipping region is good.
The previous steps are the hard part.
The last part is just applying Get OCR Text inside the element variable. Then, check if it equals certain characters. Like
",","/"``` and other characters would probably be an invalid signature.
Another thing you can do is take a screenshot inside the element and paste the image into a sized cell in Excel (fit to cell), so it is provide for a second validation if necessary; or they can also look at the document instead of adding an image, but it’s just another cool idea.
So in summary:
- Zoom document
- Scroll Document inside a loop until Find Image isNot Nothing
- Set Clipping Region, Highlight
- Get OCR Text of element
- Check string if it has invalid characters
It’s a little tricky though.