bug-ghostscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ghostscript driver to test for color in a ps doc?


From: Karl O. Pinc
Subject: Ghostscript driver to test for color in a ps doc?
Date: Thu, 21 Nov 2002 16:10:52 -0600

Hi,

Sorry to bother you, but I can't seem to find an answer in the
newsgroup archives at google.

I'm looking for a way to tell if a postscript document contains color.
(Really, I'm interested only in PDFs but it seems the postscript
question is more general.)

I've found there is no way to grep, the document must be interpreted.

This fellow,
http://groups.google.com/groups?q=%22test+for+color%22+ghostscript+group:comp.lang.postscript&hl=en&lr=&ie=UTF-8&selm=C1F32I.3tz%40mentor.cc.purdue.edu&rnum=3
has an interesting approach, which uses postscript itself to test for
color.  It seems cleaner to me to have a ghostscript "printer" driver
that does nothing but detect if color is used.

Is there such a driver?  What it is it and where can I find it?  Has
anybody made anything more general that reports on number of pages or
whatever else?  (Maybe greyscale density? :) Maybe there's a stub to
which I can add a few lines of code to do what I want?

It seems a brute force approach, but I know of no other.

TIA.

Regards,

Karl <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]