From owner-freebsd-questions Mon Jul 8 06:32:52 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA04013 for questions-outgoing; Mon, 8 Jul 1996 06:32:52 -0700 (PDT) Received: from home.lenzi ([200.247.23.199]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA03956 for ; Mon, 8 Jul 1996 06:32:13 -0700 (PDT) Received: (from lenzi@localhost) by home.lenzi (8.7.5/8.7.3) id KAA12152; Mon, 8 Jul 1996 10:35:40 GMT Date: Mon, 8 Jul 1996 10:35:39 +0000 () From: "Lenzi, Sergio" X-Sender: lenzi@home To: Fred Adorno cc: questions@freebsd.org Subject: Re: Printing under Netscape In-Reply-To: <31DF636C.41C67EA6@idt.liberty.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 7 Jul 1996, Fred Adorno wrote: > Now that I got netscape working under X-Windows why can't I print a file > that is legible. Do I need to get a PS-Adobe reader or driver > installed? > > Hello Fred. You need to install a ghostcript package (PS interpreter). and a filter in the lp to "interpret" the whole thing. Here is an example of a filter, must be mode 0755 (chwn 0755 xxxxx) in the DEVICE=epson, customize to your printer type (gs -h for details). --------------------------------------- #!/bin/sh read x t=`echo $x | cut -c1-2` if [ $t = "%!" ] then echo $x > /tmp/$$ cat /tmp/$$ - | \ /usr/local/bin/gs -dQUIET -dNOPAUSE \ -sOUTPUTFILE=- -sDEVICE=epson - rm -f /tmp/$$ else cat echo -n fi ------------------------------------------------- and an example for the printcap.... --------------------------------------------- # @(#)printcap 5.3 (Berkeley) 6/30/90 #lp|local line printer:\ lp|local line printer:\ :lp=/dev/lpt0:sd=/var/spool/lpd/lp: \ :mx#0:so:sh:sb:of=/usr/lib/lp/filters/lp:sf --------------------------^^^^^^^^^^^^^^^^^^^^^^-------- need to customize it for your system