A Python tool to split PDF files into chapters or sections automatically.
This tool takes a PDF file as input and splits it into separate PDF files based on chapter or section markers. It's particularly useful for breaking down large academic books or documents into more manageable pieces.
- Python 3.x
- Required packages (install via pip):
pip install -r requirements.txt
- Place your PDF file in the
books
directory - Run the script:
python run.py
- Split PDF files will be created in the
output
directory
In run.py
, you can configure:
input_pdf
: Path to your input PDF fileoutput_dir
: Directory where split PDFs will be saveddebug
: Set to True for detailed output