🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #5965

Re: How to test for Color Postscript

#5965
From: Vidiot
Date: Wed, 16 Dec 1992 06:21
33 lines
2110 bytes
In article <1992Dec15.005220.1891@zia.aoc.nrao.edu> pgreen@zia.aoc.nrao.edu (Philip Green) writes:
<Is there a string that I can test for that will occur in 
<Color Postscript but not Black & White?
<I would like to verify that the file is a color postscript
<file before sending it to the printer.

I assume that you are doing the test to make sure that color is actually
going to be produced, so that resources are not going to be wasted.

Unfortunately, unless you actually print the file, you aren't going to know.
Here is why I believe this is so...

Many programs, like FrameMaker can produce color documents.  But, the user
has the option to only do B&W.  But, the procedures that FrameMaker would
use for printing color are still in the PostScript prologue.  Because of that,
grepping for color procedures will only show that the file has them, not that
they are being used.

On the other side of the fence, I use the color procedure "setrgbcolor" in
my document (the Star Trek: The Next Generation Program Guide), but it is set
for gray.  It is there in case I get access to a color printer and want to
try some color printouts.  The groff source is set for future enhancement.
In this case, sending my outputs to your color printer will produce B&W.

Without actually displaying the PostScript file with a color previewer,
you can't tell that it will, or won't, produce color.

Let me be proven otherwise.
-- 
      harvard\                          spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
      rutgers/            INTERNET:vidiot!brown%astroatc.UUCP@spool.cs.wisc.edu
                                   brown@wi.extrel.com
Technical Details
Message-ID: <4593@vidiot.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!brown
References: <1992Dec15.005220.1891@zia.aoc.nrao.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!daffy!uwvax!astroatc!vidiot!brown
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: How to test for Color Postscript
Message-ID: <4593@vidiot.UUCP>
Date: 16 Dec 92 06:21:31 GMT
References: <1992Dec15.005220.1891@zia.aoc.nrao.edu>
Reply-To: brown@vidiot.UUCP (Vidiot)
Organization: Vidiot's Hangout
Lines: 33