In my opinion you're much better off taking the trouble to learn how to use xpdf tools.
macOS does provide the means to extract text from PDFs, but it's not pretty. Try this macro on the selected PDF file in the Finder.
Download: Extract Text From PDF File Selected in the Finder v1.00.kmmacros (7.8 KB)
Macro-Image

Macro-Notes
- Macros are always disabled when imported into the Keyboard Maestro Editor.
- The user must ensure the macro is enabled.
- The user must also ensure the macro's parent macro-group is enabled.
System Information
- macOS 10.14.6
- Keyboard Maestro v10.2
It may or may not be good enough for your needs.