Counts all the pages of all the PDFs in a directory. A very specific tool for a very specific task which burdened my partner.
$ python pdf_page_counter.py --help
Usage: pdf_page_counter.py [OPTIONS] [DIR_PATH]
Count all the PDFs in the directory DIR_PATH.
Options:
-r, --recursive recursive search: count all pdfs in DIR_PATH and all its
subdirectories
-t, --table print a table to terminal using rich library
--help Show this message and exit.
Recommend using Windows Terminal to interact with the script
.\pdf_page_counter.exe
pdf_page_counter.exe
- create conda environment with
conda env create -f environment.yml
python pdf_page_counter.py
- view
pdf_page_counter.log
in text editor for more detailed info. PDF read errors will be populated there.
Many thanks to the rich library for their excellent terminal printing functionality.