Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jun 2016 13:40:31 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Niklaas Baudet von Gersdorff <stdin@niklaas.eu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Reading PDFs on the command line (with misc/lesspipe)
Message-ID:  <20160629134031.e8b13544.freebsd@edvax.de>
In-Reply-To: <20160629102945.GA24197@box-hlm-03.niklaas.eu>
References:  <20160629102945.GA24197@box-hlm-03.niklaas.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 Jun 2016 12:29:45 +0200, Niklaas Baudet von Gersdorff wrote:
> 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'm using the pdftotext command, part of the xpdf package.
Its output can be redirected.



> I installed misc/lesspipe and -- as far as I can judge --
> configured it properly.
> 
>   $ echo $LESSOPEN
>   |/usr/local/bin/lesspipe.sh %s
> 
> However, if I run
> 
>   $ less some.pdf
> 
> I still get an unreadable output of fancy symbols.

Probably there is no processing step included?




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160629134031.e8b13544.freebsd>