Hello out there, I am looking for a way to find the position of a piece of text within a PDF document. I would like to then add an image overlay that is slightly to the upper left of that piece of text. I am getting as input the exact characters that should be found. Ideally, there would be a way to select from multiple locations if there are multiple locations where this string is found within the document.
I see that there is a class called TextPosition, but I don't know how to use it or get an TextPosition object from the document. Is there any way to query the document as if it was a DOM or SVG tree? Thank you in advance for your help.

