🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6365

Re: Detecting color printer

#6365
From: Rainer Klute
Date: Thu, 20 Jun 1991 14:42
27 lines
1386 bytes
In article <1991Jun20.053653.20412@sci.ccny.cuny.edu>,
kly@sci.ccny.cuny.edu (Gregory Kozlovsky) writes:
|> I would like to create a Postscript file which would be printed
|> differently on color and black&white printers. For example, lines
|> which have different colors on a color printer should be drawn with
|> different dash patterns on black&white one. What is the correct way
|> to ask the printer?  I would prefer not to use level 2 features.

I do it by testing whether the PostScript interpreter knows about the
setcolorscreen operator:

(This is ) print
systemdict /setcolorscreen known
{
    (a)
}
{
    (no)
}
ifelse
print

-- 
  Dipl.-Inform. Rainer Klute      klute@irb.informatik.uni-dortmund.de
  Univ. Dortmund, IRB             klute@unido.uucp, klute@unido.bitnet
  Postfach 500500         |)|/    Tel.: +49 231 755-4663
D-4600 Dortmund 50        |\|\    Fax : +49 231 755-2386
Technical Details
Message-ID: <3551@laura.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!tardis!tymix!uunet!mcsun!unido!laura!tommy!klute
References: <1991Jun20.053653.20412@sci.ccny.cuny.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!tardis!tymix!uunet!mcsun!unido!laura!tommy!klute
From: klute@tommy.informatik.uni-dortmund.de (Rainer Klute)
Newsgroups: comp.lang.postscript
Subject: Re: Detecting color printer
Message-ID: <3551@laura.UUCP>
Date: 20 Jun 91 14:42:35 GMT
References: <1991Jun20.053653.20412@sci.ccny.cuny.edu>
Sender: news@laura.UUCP
Organization: University of Dortmund, Germany
Lines: 27