Friday, May 15, 2015

PDF page count on Linux commandline

pdfinfo yourpdffilename.pdf | grep Pages | awk -F: '{print $2}' | tr -d '[:blank:]'

pdfinfo on Centos is provided by package poppler-utils

No comments:

Post a Comment