Skip to content

A simple GUI application that splits PDF files into smaller parts based on file size. Built with Python and Tkinter.

Notifications You must be signed in to change notification settings

GabrielVelasco/pdf-splitter-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

PDF Splitter

A simple GUI application that splits PDF files into smaller parts based on file size. Built with Python and Tkinter.

For Users

Quick Start

  1. Download `spdf_gui.exe'.
  2. Double-click to run the application
  3. Select your PDF file using the "Browse" button
  4. Choose the desired part size (in MB) from the dropdown
  5. Click "Split PDF" to start the process
  6. Find the split PDF parts in the "output" folder (created in the same directory as the executable)

Notes

  • 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

For Developers

Python version

  • Python 3.12.7 (or one compatible with all dependencies used)

Running from Source

  1. Clone the repository:

    git clone https://github.com/yourusername/pdf-splitter.git
    cd pdf-splitter
  2. Install dependencies:

    pip install tkinter PyPDF2 pyinstaller
  3. Run the application:

    python spdf_gui.py

    or

    python3 spdf_gui.py

    or

    Google how to run a python script on your machine

Creating the Executable

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.

How It Works

Explained throughout the code (I guess)...

About

A simple GUI application that splits PDF files into smaller parts based on file size. Built with Python and Tkinter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages