From owner-freebsd-questions Mon Jul 21 02:17:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id CAA02430 for questions-outgoing; Mon, 21 Jul 1997 02:17:40 -0700 (PDT) Received: from glacier.wise.edt.ericsson.se (glacier-ext.wise.edt.ericsson.se [193.180.251.38]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA02425 for ; Mon, 21 Jul 1997 02:17:36 -0700 (PDT) Received: from erlang (erlang.ericsson.se [147.214.36.16]) by glacier.wise.edt.ericsson.se (8.7.5/8.7.3/glacier-0.9) with SMTP id LAA29133; Mon, 21 Jul 1997 11:17:18 +0200 (MET DST) Received: from townsend.ericsson.se by erlang (SMI-8.6/LME-2.2.4) id LAA08482; Mon, 21 Jul 1997 11:17:15 +0200 Received: from townsend by townsend.ericsson.se (SMI-8.6/client-1.5) id LAA05071; Mon, 21 Jul 1997 11:17:14 +0200 Message-Id: <199707210917.LAA05071@townsend.ericsson.se> To: tklew@binariang.maxisnet.com.my Cc: freebsd-questions@FreeBSD.ORG Cc: kent@erlang.ericsson.se Subject: Re: Network Printer : Stair Case Effect Reply-To: kent@erlang.ericsson.se In-Reply-To: Your message of "Mon, 21 Jul 1997 15:34:03 +0800" References: <60B34F2F68E5D011AD7600609759FA23031B57@SHT-01-MSG> X-Mailer: Mew version 1.70 on Emacs 19.34.1 X-URL: http://www.ericsson.se/erlang Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 21 Jul 1997 11:17:13 +0200 From: Kent Boortz Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The original "lpd" can't handle network printing and input/output filters in the same entry. This is a serious limitation in "lpd". So you have to make one "user" entry that have the filter and one entry for the network printing. The filter has to end in | /usr/bin/lpr -PRlp to pipe the output from filtering to the network entry in your printcap. You may have to use different queue directorys not to confuse lpd but I'm not sure about that. You have a PostScript printer so another option is that you don't print directly with "lpr" but uses GNU "enscript" instead. It has many nice options. I wrote my own filter (about 6 pages Perl) for a PostScript printer that handles this and ascii to PostScript conversion, tray selection and order, duplex printing, more than one page on the same paper (n-up) and some other features. Unfortunately the PostScript codes that is to be inserted is not the same for all printers but I will write some documentation for it and put it up for download somewhere. /kgb