by nonrandomstring · 2y ago · 0 comments
pdftotext file.pdf - | nroff | less
pdftotext is from Poppler Developers http://poppler.freedesktop.org Glyph & Cog, LLC
nroff is a GNU common util on most linux/unix systems
(though I don't trust poppler utils to be secure)
Edit: re-reading I guess your point is that you can use tools to extract text from PDFs and then read without worry. That brings up another super annoying thing about PDFs--it's can be hard to extract text from them with high fidelity.
Or impossible with scans. Usually I take a look at the filesize as a guestimate. Anyone know better FOSS OCR tools that run from cmdline?