Path: 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 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