We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Getting coordinates (as LLX, LLY, URX, URY) of spesific text from pdf

Hey, I want to put a signature, next to a text in a pdf file. I can put signature as png with given coordinates as LLX, LLY, URX, URY on pdf file but I want to search pdf for a specific text then calculate signature coordinates according to it. Anyone can help me?


You can find the desired text from the PDF and get its position. Following article shows how to search the text and get its position in the form of Rectangle class. Using object of Rectangle class, you can get the text position and insert the signature.
Search and Draw Rectangle around each TextFragment

Please read the following article to insert the signature in PDF file.
Add Signature in PDF File

1 Like