From owner-freebsd-questions Tue Sep 30 23:13:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA20486 for questions-outgoing; Tue, 30 Sep 1997 23:13:05 -0700 (PDT) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA20481 for ; Tue, 30 Sep 1997 23:13:03 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id XAA23701; Tue, 30 Sep 1997 23:12:59 -0700 (PDT) Date: Tue, 30 Sep 1997 23:12:59 -0700 (PDT) From: Doug White Reply-To: Doug White To: rknebel@mail.microserve.net cc: freebsd-questions@FreeBSD.ORG Subject: Re: ghostscript In-Reply-To: <19970930210222.59676@my.domain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 30 Sep 1997 rknebel@mail.microserve.net wrote: > Hi, > I have been wracking my brain tring to get my HP Deskjet 660 to print > using freebsd 2.2.2. Many of you nice people have sent me your > /etc/printcap files and also your filters and for that I am very > appreciative. > One problem still remains. With all this help, I > can very nicely print any text file but whenever I come upon a postscript > file ie netscape or a xv picture and ghostscripts is invoked I get about 7 > pages of ghostscript error messages and nothing else. > I figured maybe my problem is with ghostscript so I started reading all > the ghostscript docs to try and understand how these filters are made. > If I switch to the ghostscript directory of examples and type: > gs -sDEVICE=cdj550 tiger.ps -sOutPutFile=\|lpr ghostscript initializes and > then I get a line that says showpage press return. Try this: /usr/local/bin/gs -q -sDEVICE=djet500 -sPAPERSIZE=letter -r300 -dNOPAUSE -dSAFER -sOutputFile=- - I actually run this in a shell script that's invoked as the input filter on a special printer definition (I call it ``ps''). If you want to run this from the command line, put a ` | lpr' after it. Make sure that the default printer isn't doing any processing on the output; gs expects to have it's output go directly to the printer. This is for my DeskJet 500 too; you may need to change the device and may want to set other options. See /usr/local/lib/ghostscript/doc/devices.doc for more information. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major