Skip to content

Instantly share code, notes, and snippets.

@mperlet

mperlet/pdfsites

Created Dec 12, 2014
Embed
What would you like to do?
PDF Site info (number of pages + color pages)
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)
}
@mperlet

This comment has been minimized.

Copy link
Owner Author

@mperlet mperlet commented Dec 12, 2014

pdfsites My.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment