Reading PDFs on the command line (with misc/lesspipe)

Niklaas Baudet von Gersdorff stdin at
Wed Jun 29 10:29:54 UTC 2016

Since I use mutt to read emails on my server, I would like to
read PDFs on the command line. How can I do that?

I installed misc/lesspipe and -- as far as I can judge --
configured it properly.

  $ echo $LESSOPEN
  |/usr/local/bin/ %s

However, if I run

  $ less some.pdf

I still get an unreadable output of fancy symbols.

Has anybody got lesspipe running properly? Or are there even
better approaches for reading PDF on the command line?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <>

More information about the freebsd-questions mailing list