How can I output the number of pages in a PDF in the Terminal? I looked into the lp
family of commands, with no luck however.
MacOS – Get Number of PDF Pages in Terminal
macospdfterminal
Related Question
- Preview: reorder pages in pdf increased file size
- How to number pages in pdf document
- MacOS – How to get Apples Human Interface Guidelines as pdf (latest version 2015)
- AppleScript – Pages export to PDF fails due to Sandbox permissions
- Imagemagick’s convert jpeg to pdf rotates even pages 180°
- Using AppleScript to batch convert .pages to pdf
- MacOS – Automator’s “Combine PDF Pages” action doesn’t preserve crop
Best Answer
Using Apple's
mdls
:to get just the number of pages: