PDF Operator is a Python-based tool that provides multiple PDF functionalities, including merging, splitting, extracting text, and converting images to PDFs. It offers both a console-based version with more features and a GUI-based version for simpler, user-friendly interactions.
- PDF Text Extractor: Extract text from a specific page of a PDF document.
- PDF Merger: Merge multiple PDF files into one.
- Split PDF Pages: Split selected pages from a PDF document into a new file.
- Image to PDF Converter: Convert image files (JPG, PNG, etc.) into a PDF file (with merging capability).
- PDF Merger: Merge multiple PDF files through a simple user interface.
- Image to PDF Converter: Convert and merge multiple images into a single PDF file.
To run this project, you’ll need the following Python libraries:
PyPDF2img2pdftkinter(for the GUI version)tkmacosx(for better button styling in macOS)
You can install these libraries via pip:
pip install PyPDF2 img2pdf tkmacosx-
Clone the repository and navigate to the folder:
https://github.com/chaitanyakhandare/PDF-Operator-withGUI.git cd PDF-Operator-withGUI -
Run the script:
python pdfOperator.py
-
Select the feature you want to use from the menu:
- Press
1for PDF Text Extractor. - Press
2for PDF Merger. - Press
3for Image to PDF conversion. - Press
4for Split PDF Pages. - Press
99to exit.
- Press
-
PDF Text Extractor:
- Enter the path to the PDF file and the page number to extract the text.
- The extracted text will be saved to a file.
-
PDF Merger:
- Provide the paths of the PDF files to be merged, and the tool will create a new merged PDF.
-
Image to PDF:
- Convert multiple image files (JPG, PNG, etc.) into a single PDF file.
-
Split PDF Pages:
- Select specific pages from a PDF to split into a new file.
-
Run the GUI-based script:
python pdf_operator_gui.py
-
Choose your desired feature from the user interface:
- Click on
PDF Mergerto merge PDF files. - Click on
Image to PDFto convert images into a single PDF.
- Click on
-
PDF Merger:
- Use the
Open filebutton to select multiple PDF files, and then clickStart Mergingto merge them into one PDF.
- Use the
-
Image to PDF:
- Select multiple image files (JPG, JPEG, PNG) to convert and merge them into a PDF file by clicking the
Convertbutton.
- Select multiple image files (JPG, JPEG, PNG) to convert and merge them into a PDF file by clicking the