Skip to content

toprogramm/pdf-splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

How to Use the PDF Splitter Script

logo

About:

The PDF Splitter Script is a Python tool that simplifies the process of breaking down large PDF files into smaller groups of pages. Users can customize the splitting based on the number of pages per group, providing a user-friendly solution for managing and organizing PDF documents. The script includes error handling for smooth execution and is part of the PDF Splitter GitHub repository. Developed for personal use, users are encouraged to report issues for timely resolution.

Prerequisites:

  • Python Installed: Ensure you have Python installed on your system. You can download and install Python from the official Python website.

Step 1: Download the Script

  • Download the Script: Copy the provided Python script into a file named splitter.py.
  • Input PDF File: Change filename to input.pdf and put it in the script directory.

Step 2: Run the Script

  • Open Terminal/Command Prompt:

    • On Windows, open Command Prompt.
    • On macOS and Linux, open Terminal.
  • Navigate to the Script Directory:

    • Use the cd command to change your current directory to where the splitter.py file is located. For example:
      cd path/to/script-directory
      
  • Run the Script:

    • Type the following command and press Enter to run the script:
      python splitter.py
      
    • The script will execute and prompt you for the required information.

Step 3: Provide Input

  • Choose a Name for Output Files

    Enter the desired name for saving the files (without  extension): 
    
  • Specify Number of Pages per Group

    How many pages per group do you want to split? (Enter a number): 
    
  • Confirmation:

    • If the total number of pages in the input PDF is not divisible by the specified number, you'll see a warning. Confirm by typing yes/y or no/n to proceed or cancel the operation.
      • If you confirm an indivisible operation, your PDF file will be split with the remainder.

Additional Notes:

  • Error Handling:
    • The script includes error handling to ensure smooth execution. If there are any issues, the script will display appropriate messages.

πŸ˜€ This script made for myself. You can report about issues and I fix it ASAIC (As Soon As I Can) πŸ˜€

Image by stockgiu on Freepik

About

Simple pdf splitter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages