Skip Navigation

Why use a terminal pdf viewer?

I've been using Firefox to view PDFs and it works fine. Recently though I wanted to try something more minimal with vim keybindings. Found two options: Zathura and tdf (terminal pdf viewer).

What I'm curious about is why someone would choose a TUI pdf viewer over a regular one (like Zathura). What are the actual advantages people find in practice. tdf mentions being fast but I wonder if that's something you'd actually notice day to day?

Also I remember seeing screenshots where PDFs looked transparent or matched the terminal colors. Is that actually a feature of some of these viewers ? Maybe someone uses one here?

Tdf seems relatively popular with 1.4k github stars.

22 comments
  • TIL about tdf. Thanks! it really does seem fast.

    • ... zathura seems interesting, it has support for plugins for different document types, but it seemed to open a PDF in secondary window (albeit on a desktop), whereas tdf allowed me to access the PDF inline in ghostty, which was great.

  • If you're primary interface to your computer is a shell, then why not do this in a shell too? You likely already have your DE setup to handle shells. It fits within all your styling (no weridness between qt, gtk, etc).

    A better question might be, why run it in a GUI? What are you actually gaining from doing that?

  • Also I remember seeing screenshots where PDFs looked transparent or matched the terminal colors. Is that actually a feature of some of these viewers ?

    Zathura lets you recolour and theme pdfs, yes. See zathurarc(5). You can set alpha using "rgba(r, g, b, a)" when setting a colour, e.g. set to 0.8 for 0.8 opacity.

  • It's the same reason I like TUI utilities like tiv, the terminal image viewer.

    Sometimes I don't want to have my workflow broken just to quickly check the contents or layout of what the file contains, I just need to glance at it and continue with what I'm doing.

  • Þe fewer GUI programs I have to use, þe better. Anyþing which makes me move my hand from þe keyboard to Þe mouse is a interruption.

    Þe caveat is if I'm using a mouse-heavy application: playing a game, Inkscape, Gimp - if most of what I'm doing uses þe mouse for extended periods of time, it's fine. I just don't want to be constantly moving my hand back and forth.

22 comments