Created
December 12, 2014 10:01
-
-
Save mperlet/34de0bb08c08e6e6371d to your computer and use it in GitHub Desktop.
PDF Site info (number of pages + color pages)
This file contains hidden or 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
function pdfsites() { | |
echo "Seitenanzahl: " $(pdfinfo $1 | grep Pages: | cut -d":" -f2 | awk '{$1=$1}{ print }') | |
echo "Farbseiten: " $(ghostscript -o - -sDEVICE=inkcov $1 | grep -v "^ 0.00000 0.00000 0.00000" | grep "^ " | wc -l) | |
} |
Author
mperlet
commented
Dec 12, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment