Search and get text from PDF document using Aspose.PDF - return the coordinates of the text on the PDF (x,y)

Hello,

I am looking into Aspose to see if it is possible to search for a text string, using a regular expression or straight text, in a PDF document and check where the info is on the document?
We require that the x,y coordinates are accurate. If we are able to get the exact rectangle points around the text would be ideal. This is important to us as we want to use it to redact out sensitive information.
Is this possible using Aspose libraries?

@jack.montagna

You can surely use Aspose.PDF to search/extract text from a PDF document using Regular Expressions or any Keyword. Once the text is extracted, you can determine rectangle of text fragments. Please check the below article in API documentation and let us know in case you need further information:

1 Like