This repository contains three pdf tools
PDF to JPEG Converter This Python script allows users to convert each page of a PDF file to a JPEG image. It utilizes the fitz module from the PyMuPDF library to handle the PDF file and the PIL (Python Imaging Library) library to save the PDF pages as JPEG images.
-Select a PDF file using the file manager dialog. -Iterate over each page in the PDF and convert it to a JPEG image. -Prompt the user to specify a file name and location for each image. -Save the converted JPEG images with the chosen file names and locations.
-PyMuPDF library: Install using pip install PyMuPDF. -Pillow library: Install using pip install Pillow.
-Run the script using Python.
-The file manager dialog will open for you to select a PDF file.
-Each page of the PDF will be converted to a JPEG image.
-For each converted image, the script will prompt you to provide a file name and location.
-After selecting a file name and location for each image, the JPEG files will be saved accordingly.

now the file will be saved
#Note: Make sure to have both PyMuPDF and Pillow installed before running the script. The converted images will be saved with the chosen file names and locations specified by the user.
A Python script that allows you to split a PDF file into multiple smaller PDF files based on page ranges.
This Python script uses the PyPDF2 library to split a given PDF file into multiple smaller PDFs. You can specify the number of splits you want and provide the starting and ending page numbers for each split. The script then creates separate PDF files for each split, allowing you to efficiently extract specific sections of a larger PDF document.
- Interactive user interface using
tkinterfor selecting the input PDF file and output directory. - Specify the number of splits and the page ranges for each split.
- Customizable output file names for each split.
- Make sure you have Python installed on your system.
- Clone this repository:
git clone https://github.com/your-username/pdf-splitter.git - Navigate to the project directory:
cd pdf-splitter - Install required dependencies:
pip install PyPDF2 - Run the script:
python pdfsplit.py
- Run the script and follow the prompts to select the input PDF file.
- Specify the output directory where the split PDF files will be saved.
- Provide the number of splits you want to create.
- For each split, enter the starting and ending page numbers.
- Enter a custom name for each split PDF.
The resulting split PDF files will be saved in the chosen output directory.
Python code for merging the pdf
Run the code and there will be a opening of dialog box in the window select the pdf files and run it will ask where to save and the name of the merged pdf.




