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
Firefox
Well hot fucking damn, I’m posting from Firefox already, it never crossed my mind to try that, thanks!
Meanwhile, I finally got it reading 1984 out loud…
wget https://tinyurl.com/go-1984
pdftotext go-1984
cat go-1984.txt | espeak
Now I just can’t get the damn thing to shut up, short of force killing the speech engine LOL!
Another vote for Okular.
KDE default, and it’s always worked fantastic for me in the past. Actually, lol, I was just giving a presentation a couple weeks ago using it, and – I am not making this up – one of the people in the audience was so impressed he came up to ask me what program I was using.
Check out lue: https://github.com/paulilaaso/lue
terminal-based , TTS, various formats supported. I’ve used it and it works on my system. (edit: I see you’re on android, so not sure if that’s supported. It’s python.)
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 👍
Is python supported?
Yep, apparently 100% supported 👍
So theoretically it could work if you have proper python modules for the TTS? There’s a command option to specify the TTS model. Just speculating.
Libre Office
Easier said than done on Termux, that’s not exactly immediately supported and is gonna take jumping through a few extra hoops to get installed. Sigh, I’ll get to it one of these days…
Not very ‘lightweight’ if all you need it to do is read PDFs.
True. Although you can just get Writer which isn’t crazy big.



