A simple GUI application that splits PDF files into smaller parts based on file size. Built with Python and Tkinter.
- Download `spdf_gui.exe'.
- Double-click to run the application
- Select your PDF file using the "Browse" button
- Choose the desired part size (in MB) from the dropdown
- Click "Split PDF" to start the process
- Find the split PDF parts in the "output" folder (created in the same directory as the executable)
- When a page is larger than the specified part size, you'll be prompted to either:
- Include it as a single part
- Skip it entirely
- The application will create (or clear) an "output" folder for the split PDF files
- Each part will be named as
original_filename_part_X.pdf
where X is the part number
- Python 3.12.7 (or one compatible with all dependencies used)
-
Clone the repository:
git clone https://github.com/yourusername/pdf-splitter.git cd pdf-splitter
-
Install dependencies:
pip install tkinter PyPDF2 pyinstaller
-
Run the application:
python spdf_gui.py
or
python3 spdf_gui.py
or
Google how to run a python script on your machine
To create a standalone executable (.bin on Linux or .exe on Windows):
pyinstaller --onefile --windowed spdf_gui.py
The executable will be created in the dist
directory.
Explained throughout the code (I guess)...