dotfiles/scripts/pdfpages

5 lines
122 B
Plaintext
Raw Normal View History

2018-04-15 16:29:27 +02:00
#!/usr/bin/bash
# From https://stackoverflow.com/a/14736593
pdftk "$1" dump_data | grep NumberOfPages | awk '{print $2}'