From owner-freebsd-questions@freebsd.org Wed Jun 29 11:40:41 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 AC550B85FE2 for ; Wed, 29 Jun 2016 11:40:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7577C22D3 for ; Wed, 29 Jun 2016 11:40:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-113-71.dynamic.qsc.de [92.195.113.71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 0884B27A1B; Wed, 29 Jun 2016 13:40:32 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u5TBeVqG002939; Wed, 29 Jun 2016 13:40:31 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 29 Jun 2016 13:40:31 +0200 From: Polytropon To: Niklaas Baudet von Gersdorff 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> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 11:40:41 -0000 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, ...