🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3546

Re: what am I printing on?

#3546
From: Woody Baker Eagle Signal
Date: Sun, 04 Nov 1990 04:46
18 lines
1389 bytes
In article <JWZ.90Nov2114034@kolyma.lucid.com>, jwz@lucid.com (Jamie Zawinski) writes:
> What's the best way for a PostScript program to tell what kind of device it's
> printing on?  Basically, I would like a program to be able to notice that
Generaly, there is a command that will return the name of the printer to you.
The following facilities of statusdict are available to all Adobe postscript
interpreters according to the RED book, and so should be present on all
complient clones.    product <product name string>    revision <int revision
number>

These should suffice to allow you to determine these things.  for example,
assuming that GHOSTSCRIPT does not have it defined, if you do

do product, you may get an error.  Doing so on another machine will
get you a name.  Granted, the name can be changed, but still it should
suffice to know that a machine is NOT a laserwriter of you need to make
that determination.
Cheers
Woody
Technical Details
Message-ID: <1673@chinacat.Unicom.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!chinacat!woody
References: <JWZ.90Nov2114034@kolyma.lucid.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!chinacat!woody
From: woody@chinacat.Unicom.COM (Woody Baker @ Eagle Signal)
Newsgroups: comp.lang.postscript
Subject: Re: what am I printing on?
Summary: the best way
Message-ID: <1673@chinacat.Unicom.COM>
Date: 4 Nov 90 04:46:16 GMT
References: <JWZ.90Nov2114034@kolyma.lucid.com>
Organization: a guest of Unicom Systems Development, Austin
Lines: 18