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)

pdfgrep « textproc - ports - FreeBSD ports tree

@rl_dane other options would include using pdftohtml and then converting the HTML to text (whether with lynx or pandoc), or there's a pdftotext in the poppler-utils package

@gumnos

<https://www.freshports.org/textproc/py-pdftotext/#pkg-plist> "There is no configure plist information for this port."

I wonder why.

There's probably a generic explanation, not specific to this port. If so, maybe I can add something to <https://www.freshports.org/faq.php> …

#FreeBSD #FreshPorts

FreshPorts -- textproc/py-pdftotext: Simple PDF text extraction

Simple PDF text extraction