Given a set of PDF files among which some pages are color and the remaining are black & white, is there any program to find out among the given pages which are color and whi
Here is the ghostscript solution for Windows, which requires grep from GnuWin (http://gnuwin32.sourceforge.net/packages/grep.htm):
Monochrome (Black and White) pages:
gswin64c -q -o - -sDEVICE=inkcov DOCUMENT.pdf | grep "^ 0.00000 0.00000 0.00000" | find /c /v ""
Color pages:
gswin64c -q -o - -sDEVICE=inkcov DOCUMENT.pdf | grep -v "^ 0.00000 0.00000 0.00000" | find /c /v ""
Total pages (you get this one easier from any pdf reader):
gswin64c -q -o - -sDEVICE=inkcov DOCUMENT.pdf | find /c /v ""