These Python scripts manipulate PDFs using the pypdf library.
combine_pdfs.py combines PDF documents from a folder (non-recursively) into a big PDF (sorted by filename) - the original PDFs are not modified.
extract_pages.py copies selected pages from an existing PDF and creates a new PDF - the original PDF is not modified.
Using these scripts together allows endless mish-mashing of pages from multiple PDFs.
- Install uv using PowerShell (full instructions here: https://docs.astral.sh/uv/getting-started/installation):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"- Verify uv installed correctly:
uv --version- Download script files:
curl -L -O https://github.com/the-chicken-leg/bigPDFmaker/blob/main/combine_pdfs.py?raw=truecurl -L -O https://github.com/the-chicken-leg/bigPDFmaker/blob/main/extract_pages.py?raw=true- Run using uv. On the first run, uv will download the appropriate Python version, create a virtual environment, and install dependencies, which might take some time. Subsequent runs will be faster:
uv run .\combine_pdfs.pyuv run .\extract_pages.py 

