Skip to content

the-chicken-leg/bigPDFmaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bigPDFmaker

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.

Usage

combine_pdfs.py

combine_pdfs-h

combine_pdfs

extract_pages.py

extract_pages

Run on Windows with uv

  1. 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"
  1. Verify uv installed correctly:
uv --version
  1. Download script files:
curl -L -O https://github.com/the-chicken-leg/bigPDFmaker/blob/main/combine_pdfs.py?raw=true
curl -L -O https://github.com/the-chicken-leg/bigPDFmaker/blob/main/extract_pages.py?raw=true
  1. 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.py
uv run .\extract_pages.py 

About

Manipulate PDFs.

Resources

Stars

Watchers

Forks

Contributors

Languages