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

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 hours ago

    pdftotext go-1984.pdf

    cat go-1984.txt | espeak

    Looks like pdftotext go-1984.pdf -|espeak should let you drop the temporary file, if you want.

    • over_clox@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      5 hours ago

      Trying this right now, supposed to make espeak read the entire document…

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

      Edit: This works, reads the entire document and doesn’t stop at line 200

    • over_clox@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 hours ago

      WTF espeak? It stops at line 200, the last words it speaks are “little boy screaming with fright”

      Goddamnit, WTF espeak? Guess I need to look up the man/help file for espeak to convince it to read the whole document…