Get text occurrences contained in a specified area with iTextSharp

PHOTO EMBED

Sat Nov 04 2023 23:08:28 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio

System.util.RectangleJ rect = new System.util.RectangleJ(70, 80, 420, 500);
RenderFilter[] filter = {new RegionTextRenderFilter(rect)};
ITextExtractionStrategy strategy = new FilteredTextRenderListener(
        new LocationTextExtractionStrategy(), filter);
text = PdfTextExtractor.GetTextFromPage(reader, 1, strategy);
content_copyCOPY

https://stackoverflow.com/questions/20606467/get-text-occurrences-contained-in-a-specified-area-with-itextsharp