I would like to identify the presence of a signature on several documents.
What should I use? The “Image Exists” seems not working properly.
I’ve made the following example on Tick boxes : Main.xaml (16.2 KB)
I’ve done the exercice on 4 documents, 2 documents have a Tick box and 2 documents without. However, “Image exists” identify only 1 document with a Tick box.
image exists should actually work, the reason is the pdf may not opened fully to check for the image
–use start process and pass the file path of the pdf as input under file property
–use a maximize window activity to maximize the application
–next to this use a image exists activity and check whether image is there or not
–then we can use the above boolean output to check whether its there or not
hope this would help you
kindly try this and let know for any queries or clarification
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:
Scroll Document inside a loop until Find Image isNot Nothing