Skip to content

PDF splitter is used for split the whole pdf into multiple pages using python, for this we can call this simple function or method for which I used package called PYPDF.

License

Notifications You must be signed in to change notification settings

SajixInc/PDF-Spliter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PDF Split using Python

About

PDF splitter is used for split the whole pdf into multiple pages using python, for this we can call this simple function or method for which I used package called PYPDF.

We have to Place the number of pdfs at one place and use the function (folder_pdf_spilter) and mention the folder path then run the file there you got all pdfs into individual pdf pages.

This function takes in two arguments: file_path is the path to the PDF file that needs to be split, and pages is a list of tuples representing the page ranges to be extracted. Each tuple consists of two integers: the starting page number and the ending page number. For example, if pages is [(1, 3), (5, 6)], the function will create two output PDF files: "output_1-3.pdf" containing pages 1 to 3, and "output_5-6.pdf" containing pages 5 to 6.

Features

  • Split the pdf
  • integrate to Tkinter,
  • Django restframe work etc.
  • free of cost
  • easy to use

Development Environment (Local)

System Requirements

💻 Supported Os:

  • Ubuntu (18.04/20.04)
  • Windows
  • Mac Os
  • CentOS (7/8)
  • Red Hat Enterprise Linux

⚙️Hardware Requirements:

💡 Before you begin, make sure you have the installed Python

Usage

  • clone the respositry.

installion packages

To install Required packages run this command:

  pip install -r requirements.txt 

Before that, you have to ensure the your path location, where the pdf_splitter.py is

Now import the file wherever we want to call

import pdf_spiltter

or

from pdf_spiltter import *

sample code:

pdf_path =' give the pdf path'
pdf_split(pdf_path)

if you want to split the bunch of file

folder_pdf_path =' give the pdf path'
folder_pdf_spilter(folder_pdf_path)

To run the python file
run this command

python --file path 

About

PDF splitter is used for split the whole pdf into multiple pages using python, for this we can call this simple function or method for which I used package called PYPDF.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages