Last active
April 20, 2018 14:21
-
-
Save j-faria/f9f178429b2d9e8b5c8a3858b4ce1bf4 to your computer and use it in GitHub Desktop.
Count the number of color pages in a pdf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gs -o - -sDEVICE=inkcov input.pdf | grep -v "^ 0.00000 0.00000 0.00000" | grep "^ " | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment