I found the solution for this.
I used click ocr activity. I am passing the coordinates on the scanned pdf document and signing it.
When the pdf is scanned the relative positions of text change. So first I get an anchor of a text in the document and based on the anchor the sign is placed.
I have just used Uipath Studio and Omni OCR to to handle this.