I'm running Termux with XFCE desktop on Android. I only just realized that the only program I currently have installed that can properly open PDFs is GIMP, and that's extreme overkill as I just want a lightweight reader, no need to manipulate them as images ya know.

Also, related side question, are there any lightweight Linux terminal programs that can export PDF as plain text? I'm kinda hoping to pipe the text output of George Orwell 1984 through espeak reader and have Linux read it out to me...

Edit: Plain text and speech engine questions solved, and rather simple no less. This is the refined version BTW, --stdin is necessary to make espeak read the entire document.

pdftotext go-1984.pdf -|espeak --stdin

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 2 points 1 day ago (3 children)

Oof, that's gonna be a no-go for me. Though Termux is on Android, and actually is a variation of Linux, it's a very hacked distro, as it doesn't have access to the true / root folder, everything is stored in /data/data/com.termux/files/

So, every single program for Termux has to be modified and recompiled accordingly to comply. At least most mainline programs and packages are available and maintained, apparently lue isn't available, and I ain't in any hurry to modify and recompile it myself, but I probably could, if it was necessary.

I've installed Okular though and that works fine, plus pdftotext works fine in the terminal as well.

Thanks for the response and advice though 👍

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 day ago (2 children)