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

Free Support Forum - aspose.com

Need to get to the coordinate of that text to replace with image

I need to be able to look for a certain text on a pdf page and replace it with an image.
I would need to get to the coordinate of that text…

How can Aspose PDF do this ?
Can you provide some snipplet ?

Thank you.

@nick1234

Thank you for contacting support.

You can search for any text in a PDF document as explained in Search and Get Text from All the Pages of PDF Document. Then you can use textFragment.Position.XIndent and textFragment.Position.YIndent properties to add an image stamp while setting imageStamp.XIndent and imageStamp.YIndent properties as explained in Adding Image Stamp in PDF File.

We hope this will be helpful.