Couldn't find a package for pdf(2|to)te?xt in #FreeBSD, but [pdfgrep] is available.
UPDATE: it's in poppler-utils :D
Easy solution:
pdfgrep . file.pdf > file.txt
😅
(I do have [py311-pdftotext] installed, but it just seems to install a library and not any executables)
🍵 