This repository contains a Python script for splitting a large PDF file into smaller parts. It is particularly useful for managing large PDF documents, making them easier to share or handle when size constraints are a concern.
- Split PDF by Size: Divides a PDF file into multiple parts, each not exceeding a specified maximum size in MB.
- Custom Output Directory: Users can specify the output folder for the split PDF files.
- Preserves Original Format: Each part retains the original formatting and structure of the PDF.
- Python 3.x
- PyPDF2 library
- Ensure Python 3.x is installed on your system.
- Install PyPDF2 using pip:
pip install PyPDF2
To use the script, follow these steps:
- Place your PDF file in a known directory.
- adjust the parameters
- Run the script