Earlier quoted context omitted.
In my experience it really depends on what sort of pdfs you are trying to extract (ie what the content is). For regular pdfs that have been produced in a “normal way” (ie using latex or a modern application with a “save to pdf” function) will contain the text and for those I’ve had a lot of success on general pdfs using pypdf. “Image” Pdfs that have been produced via a scan so don’t actually contain a text transcript…
> regular pdfs that have been produced in a “normal way” (ie using latex or a modern application with a “save to pdf” function) will contain the text Producing "normal PDFs" that way actually requires specific LaTeX options to be enabled in my experience. Without that, PDF viewers have to perform all kinds of ugly hacks to even figure out what Unicode codepoint a given glyph is supposed to represent! PDFs are much mo…
latexmk --lualatex -aux-directory=output -output-directory=output $
). Maybe latexmk is adding some magic?