ABBYY Screenshot Reader - https://pdf.abbyy.com/screenshot-reader/
Probably the first company start OCR - https://en.wikipedia.org/wiki/ABBYY_FineReader
The mac will take a snapshot of the screen. Over time it will slowly scrape images and make the results available to Spotlight (mac's search tool). Depending on what you're looking for that might be enough.
ABBYY Screenshot Reader - https://pdf.abbyy.com/screenshot-reader/
Probably the first company start OCR - https://en.wikipedia.org/wiki/ABBYY_FineReader