• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Color pages information from postscript file

New Here ,
May 06, 2009 May 06, 2009

Copy link to clipboard

Copied

I have a postscript file made from a printer driver.

Is there any way we can distinguish between color and b/w pages, i.e to get count of number of colored and B/W pages in the postscript file.


I found on inet that postscript operators setrgbcolor and setcmykcolor give color information

but i wasn't able to find operators setrgbcolor and setcmykcolor in my postscript file.

TOPICS
Programming

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
May 07, 2009 May 07, 2009

Copy link to clipboard

Copied

LATEST

Most actual PostScript operators are actually hidden in PostScript files via use of procedures defined at the beginning of the PostScript file. For better or worse, most PostScript drivers and applications that natively generate PostScript work this way. Thus, unless you actually interpret the entire file, you cannot readily determine any color operations are invoked. Plus, a "black and white page" can be represented as grayscale, CMYK where (0,0,0,K), and separation black. Depending upon the particular PostScript implementation, R=G=B is often interpreted as grayscale as well.

          - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines