A simple script to add page numbers to a PDF file.
Some scanned public domain books on Google Books does not have page numbers (see Fig. 1), so we create this script to automatically add page numbers thereto.
This is just a Python script, not a module or a software on its own. Just download the script file and use.
Python 3, Pillow (PIL), pymupdf, and tqdm. Install them with:
pip install Pillow PyMuPDF tqdm# Make sure you had `pdf_numbering.py` in working directory
python pdf_numbering.py input.pdf output.pdf
