malindupasan / Pdf_Splitter

You can use this code to split your large size pdf to small sized parts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF Splitter Script

Overview

This repository contains a Python script for splitting a large PDF file into smaller parts. It is particularly useful for managing large PDF documents, making them easier to share or handle when size constraints are a concern.

Features

  • Split PDF by Size: Divides a PDF file into multiple parts, each not exceeding a specified maximum size in MB.
  • Custom Output Directory: Users can specify the output folder for the split PDF files.
  • Preserves Original Format: Each part retains the original formatting and structure of the PDF.

Requirements

  • Python 3.x
  • PyPDF2 library

Installation

  1. Ensure Python 3.x is installed on your system.
  2. Install PyPDF2 using pip:
    pip install PyPDF2
    

Usage

To use the script, follow these steps:

  1. Place your PDF file in a known directory.
  2. adjust the parameters
  3. Run the script

About

You can use this code to split your large size pdf to small sized parts


Languages

Language:Python 100.0%