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.
- Split a multi-page
PDF
into individual single-pagePDFs
- Maintain original page quality and formatting
- Simple command-line interface
- Fast and efficient processing
Python 3.6
PyPDF2
To set up this project, follow these steps:
-
Clone the repository:
git clone https://github.com/jromero132/pdf-splitter.git cd pdf-splitter pip install -r requirements.txt```
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.
If you encounter any problems or have any questions, please open an issue in the GitHub repository.
Contributions are welcome! Please feel free to submit a pull request.
This project is licensed under the terms of the license file included in this repository.