Skip to content

PDF Splitter is a Python tool that takes a multi-page PDF file and splits it into individual PDF files, one for each page of the original document.

License

Notifications You must be signed in to change notification settings

jromero132/pdf-splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Splitter

Buy Me a Coffee Made with Python Last commit

PDF Splitter is a Python tool that takes a multi-page PDF file and splits it into individual PDF files, one for each page of the original document.

Features

  • Split a multi-page PDF into individual single-page PDFs
  • Maintain original page quality and formatting
  • Simple command-line interface
  • Fast and efficient processing

Requirements

  • Python 3.6
  • PyPDF2

Installation

To set up this project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/jromero132/pdf-splitter.git
    cd pdf-splitter
    pip install -r requirements.txt```
    

Usage

To split a PDF file, use the following command:
python main.py path/to/your/file.pdf

This will create the output directory if provided, otherwise it will use the current directory. Each page of the original PDF will be saved as a separate PDF file in this new directory.

Example:
python main.py documents/my_large_document.pdf output_folder

This will create a directory output_folder containing files like page_1.pdf, page_2.pdf, etc.

Support

If you encounter any problems or have any questions, please open an issue in the GitHub repository.

Contributing

Contributions are welcome! Please feel free to submit a pull request.

License

This project is licensed under the terms of the license file included in this repository.

Happy Coding! 🚀

Sponsor this project

Languages