A simple Python script to split PDF files
A lightweight Python utility to split a single PDF file into four separate PDF files, distributing pages as evenly as possible.
This tool is intended for quick, repeatable use in document workflows (e.g., large reports, submissions, or archival splitting) and avoids unnecessary dependencies or frameworks.
- Splits any PDF into four parts
- Automatically balances page counts
- Preserves original page order
- Minimal dependency footprint
- Suitable for scripting or one-off use
- Python 3.9+
PyPDF2(seerequirements.txt)
Clone the repository and install dependencies:
git clone https://github.com/your-username/pdf-splitter.git
cd pdf-splitter
pip install -r requirements.txt