From owner-freebsd-questions@freebsd.org Wed Jun 29 10:29:53 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DD912B8451F for ; Wed, 29 Jun 2016 10:29:53 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: from box-hlm-03.niklaas.eu (box-hlm-03.niklaas.eu [IPv6:2a02:2770:15:0:21a:4aff:feaa:e902]) by mx1.freebsd.org (Postfix) with ESMTP id AC7782485 for ; Wed, 29 Jun 2016 10:29:53 +0000 (UTC) (envelope-from stdin@niklaas.eu) Received: by box-hlm-03.niklaas.eu (Postfix, from userid 1001) id 1834A385519; Wed, 29 Jun 2016 12:29:45 +0200 (CEST) Date: Wed, 29 Jun 2016 12:29:45 +0200 From: Niklaas Baudet von Gersdorff To: freebsd-questions@freebsd.org Subject: Reading PDFs on the command line (with misc/lesspipe) Message-ID: <20160629102945.GA24197@box-hlm-03.niklaas.eu> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2016 10:29:54 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/lesspipe.sh %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? Niklaas --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXc6MTAAoJEG2fODeJrIU/q84P/2FNlGNN+PMyPYKLsMy3p6f/ f3k6AEiKhDrv+mKiHt3Jq1Cib2YSAlkMz81vxIHqQM6CAq5ZD3NXfbxSqnaj5q4M OYHLJj6aCS78kTZyTpFxaKR1PJYq8IzX9teBlSiGCssjlh+N4cA35WwhSem1t1k/ GEc27dWU+AW0hiFFmjN0fWnpW4Wms9QBQOhJK75MQGme8EXpqsAEouzhadksU5tg muf5SsnYOlAlfOdumjPaOcRvqlI+dA0b8yZ9ixkHzfoKVkhk+F4Y5EDveAr72HTP chsAYnWcW7ho3ZP0eJNMz914WYCsyOyK1E5BTsM+sHkURdjj0b8yf4hWAtXOfsOc 98rjmx8RBG6niY5YX/LRRArl4Y0DgDLs+GMT8ZIMM+gikGiCDj7Cclf+dUMPNGZE yHJqww76dtgq3HER+nLDG7XZo7od5O7iBYWqwsT06lYbJfdBZSbyEfeZiYw7Ebka DjHBcsILy20vSQGQDdynYVzwcQtKEWpn8SbZokZylxISR/WdhOWtACFlF1+tVLaN rVnpysoSemGijWnP8LH9dqvRJWb95Cq9zC2x6it3otuIRJw+mQPij88KOrVFw3fh dRx922zr24z4pgdUoQ9MXsKh6KeuabQ/9SNw4YWwnN2vLghRH6ogmFlvN88tdGo9 VYIN0u4RdgrZTjzk+wOp =+J9K -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--