Page 1 of 1
Page Count of a .PS by color or B&W
Posted: 2011-01-28T13:00:39-07:00
by jeffny
I need to be able to determine the page count ( through an automated script ) of a .PS file, but to make it challenging I need a count of Black & White pages and a count of color pages.
Was hoping someone had done this through imagemagik and prevent me from digging through and learning Postscript at the inerpreter level. Something I want to avoid at all costs.
Can anyone help?
Re: Page Count of a .PS by color or B&W
Posted: 2011-01-28T14:15:35-07:00
by fmw42
you will likely need to write a script to output each page, then test the color statistics on each page to see if (r=g=b for grayscale) from the verbose information (identify -verbose info: ...) or check the type (bilevel, grayscale, truecolor).
Re: Page Count of a .PS by color or B&W
Posted: 2011-01-31T05:54:29-07:00
by jeffny
When you say output each page, you mean to a pdf I presume?
Will the Indentify command work on a postscript, or do I have to use PDF? ( or another format ).
Unfortunately I really need a way to rip this information from a .ps without having to rip (or output) individual pages. Looking to do this on a mass scale as things are printed in bulk.
Thanks for the help regardless.
Re: Page Count of a .PS by color or B&W
Posted: 2011-01-31T10:33:08-07:00
by fmw42