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

Free Support Forum - aspose.com

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


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?


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