tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Thomas Leitner <tom () finwds01 ! tu-graz ! ac ! at>
To: tru64-unix-managers
Subject: SUMMARY: Setting up GhostScript 4.03 as a print filter .......
Date: Sun, 26 Jan 1997 19:12:05 +0000	[thread overview]
Message-ID: <96076450423433.tru64-unix-managers.marc@archive.invalid> (raw)


Hello,

Well: It turned out to be rather easy. The reason for my failure at
the first attempt was that I tried to  use it with a networked 
printer. I was told that input & output filters do not work with
networked printers.

Thanks to 

       David Warren <warren@atmos.washington.edu>
       Robert L. McMillin <rlm@syseca-us.com>

for their answers.

I now got the following settings:

/etc/printcap:
#
# HP Laserjet 5L, Zimmer 41 mit Postscript Filter
#
lpgs:\
	:af=/var/adm/lplog/lpgs.acct:\
	:lf=/var/adm/lplog/lpgs.err:\
	:lp=/dev/lp0:\
	:sh:\
	:of=/usr/local/bin/gsfilter:\
	:sd=/usr/spool/lpgs:

/usr/local/bin/gsfilter:
#!/bin/sh
device=ljet4
res=600
/usr/local/bin/gs -q -dNOPAUSE -sDEVICE=$device -r$res \
             -sPAPERSIZE=a4 -sOutputFile=- -

This works great. The only problem left is, that printing to the
normal lp printer with the following entry:

lp:\
	:af=/var/adm/lplog/lp.acct:\
	:lf=/var/adm/lplog/lp.err:\
	:lp=/dev/lp0:\
	:sh:\
	:if=/usr/lbin/hplaserof:\
	:of=/usr/lbin/hplaserof:\
	:sd=/usr/spool/lpd:

always prints in landscape mode regardless of the LPR -O option.
Any idea anyone?

Thanks -- Tom

This is my original posting:

On Wed, 22 Jan 1997, Thomas Leitner wrote:

> 
> Hi,
> 
> Did anybody manage to setup GhostScript 4.03 as a print filter under
> Digital Unix 4.0a and if so, how? I remember that a couple of month ago
> I tried that and was not successful. Now I need to do it again because
> our working environment changed a bit and I need to setup a postscript
> printer queue for a HP Laserjet 5L.
> 
> While this is no problem under OS/2 (yes, really) and under Linux
> (Caldera Linux already comes preconfigured with a print filter 
> based on GhostScript) I had these severe problems when I tried it
> last time.
> 
> So my question: Did anybody manage to get this going?

--------------------------------------------------------------------------
T o m   L e i t n e r                       Dept. of Communications
                                            Graz University of Technology, 
e-mail    : tom@finwds01.tu-graz.ac.at      Inffeldgasse 12
Phone     : +43-316-873-7455                A-8010 Graz / Austria / Europe
Fax       : +43-316-463-697
Home page : http://wiis.tu-graz.ac.at/people/tom.html
PGP public key on : ftp://wiis.tu-graz.ac.at/pgp-keys/tom.asc or send 
mail with subject "get Thomas Leitner" to pgp-public-keys@keys.pgp.net
--------------------------------------------------------------------------

                 reply	other threads:[~1997-01-26 19:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox