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
[–] 3 points 1 day ago* (last edited 1 day ago) (4 children)

Honestly, I didn't even know that one could do a graphical environment on Termux (as XFCE and GIMP would entail) with it. The Termux I know on Android is an app in F-Droid that provides a terminal-only environment. So I don't really know what-all is packaged for the environment you're using. Just saying that traditional Linux distros will have those.

EDIT: You might run a pkg update in Termux to update the index of currently-available packages, then try installing it.

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

    Yeah, same Termux app from F-Droid running the show, via VNC...

    Termux + vncserver + XFCE displayed through MultiVNC here, it was a fun journey getting it all set up, but yeah I've been running this as my main daily runner since July, and rather almost like it LOL!

    Not sure if you caught my edits, but aapparently the poppler tools were already installed, so I already have pdftotext 👍

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

    Ah, gotcha! Thanks for the explanation!

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 1 point 1 day ago

    I just caught your edit regarding pkg update, yeah that's like one of the first things I do before upgrading or installing any packages. Actually pkg is just an alias for apt anyways, same difference on Termux.

    Once the GUI is all set up, synaptic package manager is also a nice healthy option to install 👍

  • source
  • parent