Skip to content

Counts all the pages of all the PDFs in a directory. A very specific tool for a very specific task which burdened my partner.

License

Notifications You must be signed in to change notification settings

chucklesoclock/pdf-page-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pdf-page-count

Counts all the pages of all the PDFs in a directory. A very specific tool for a very specific task which burdened my partner.

Usage

$ 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.

On Windows

Recommend using Windows Terminal to interact with the script

Powershell

  • .\pdf_page_counter.exe

Command Prompt

  • pdf_page_counter.exe

With Python installation

  • create conda environment with conda env create -f environment.yml
  • python pdf_page_counter.py

Log File

  • view pdf_page_counter.log in text editor for more detailed info. PDF read errors will be populated there.

Acknowledgements

Many thanks to the rich library for their excellent terminal printing functionality.

About

Counts all the pages of all the PDFs in a directory. A very specific tool for a very specific task which burdened my partner.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages