News for hackers. Stuff that matters.
Re:Designing command-line interfaces by jsrn on Friday August 05, 2011 @07:42PM (#2852274)
"[...] but it doesn't have an -i or --info option that tells me how many pages a PDF file has"

You could use pdfinfo - in Debian / Ubuntu, it is in the same package as pdftotext (poppler-utils).

To extract (only) the number of pages of a PDF:

    $ pdfinfo FILE.pdf | grep '^Pages' | tr -s ' ' | cut -d ' ' -f 2
Re:Designing command-line interfaces by mahmud on Friday August 05, 2011 @09:40PM (#2852589)
Thank you. Now I don't have to hate people who leave blank pages without the customary "This page intentionally left blank".