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

    • over_clox@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      2 days ago

      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!

  • 2ndDegreeOWO@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 days ago

    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.

    • over_clox@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      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 👍

    • over_clox@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      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…