Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2008 08:06:33 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Martin Schweizer <office@pc-service.ch>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Printing with lpd
Message-ID:  <alpine.BSF.1.10.0808040755050.38989@wonkity.com>
In-Reply-To: <20080804050617.GA37021@saturn.pcs.ms>
References:  <20080804050617.GA37021@saturn.pcs.ms>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 4 Aug 2008, Martin Schweizer wrote:

> I'm playing around with lpd. My setup: a FreeBSD 7.0 server and a attached HP LaserJet 2840N (connected via ethernet), my
> /etc/printcap:
> hplj2840|lp|Hewlett Packard LaserJet 2840C:\
>        :sh:\
>        :lp=:rm=hplj2840:rp=raw:sd=/var/spool/lpd/hplj2840:\
>        :lf=/var/log/lpd-errs:\
>        :if=/usr/local/libexec/if-simple:
>
> and if-simple:
> /usr/local/bin/recode latin1..ibmpc
>
> The prints are ok so fare (incl. the german umlauts). If I print text mails out from mutt the seems ok too. But if the
> mails has some incorrect wrapped lines (> 72 caracters) the lines are not wrapped on the output.  What do I worng here?

There's a PCL command for wrapping long lines: <ESC>&s0C (Untested by 
me, I use PostScript.)  Your if-simple can send that escape sequence 
before the actual file.

/usr/ports/print/enscript is a convenient text to PostScript formatter 
which wraps long lines by default.

-Warren Block * Rapid City, South Dakota USA



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.1.10.0808040755050.38989>