Skip to content

nassimlamUM6P/pdf-splitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Splitter by Page Ranges

A Streamlit web application that allows you to split PDF files by specifying page ranges, with options for password protection and individual part downloads.

App Screenshot

Features

  • Page Range Splitting: Split PDFs into multiple parts using custom page ranges
  • Preview Functionality: View page previews before splitting
  • Password Protection: Optionally encrypt output PDFs with passwords
  • Flexible Download Options:
    • Download all parts as a single ZIP file
    • Download individual parts separately
  • Custom Naming: Choose from multiple file naming formats
  • Summary File: Optional text file with split information

Installation

  1. Clone the repository:

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

    pip install -r requirements.txt
  3. Install Poppler (required for PDF to image conversion):

    • Windows: Download from poppler-for-windows and add to PATH
    • Mac: brew install poppler
    • Linux: sudo apt-get install poppler-utils

Usage

  1. Run the Streamlit app:

    streamlit run app.py
  2. In your web browser:

    • Upload a PDF file
    • Preview pages to verify content
    • Define page ranges to split
    • Configure advanced options (password protection, naming format)
    • Download the results

Configuration

Edit the following in app.py if needed:

  • POPPLER_PATH - Set your Poppler binary path if not in system PATH
  • Default file naming formats
  • Preview image sizes

Requirements

  • Python 3.7+
  • Streamlit
  • PyPDF2
  • pdf2image
  • Pillow
  • poppler-utils (system package)

About

A Streamlit web application that allows you to split PDF files by specifying page ranges, with options for password protection and individual part downloads.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages