This task can be performed using Text Capture
Simple & convenient OCR tool for macOS
Best product for this task

Text Capture
productivity
Capture text from anywhere - non-selectable text in apps, images, videos, PDFs, or anything on your screen! Simple & convenient OCR tool for macOS 1. Click capture text 2. Select an area on screen with text 3. Paste the text anywhere

What to expect from an ideal product
- Open Text Capture and click the "Capture text" button to start scanning your PDF
- Draw a selection box around any text in your PDF, even if it's not normally selectable
- The app automatically converts the selected text using OCR technology
- Copy the extracted text and paste it wherever you need it
- Works on any PDF document regardless of security settings or how the text was embedded