A powerful web-based PDF utility that enables you to merge, split, and convert images to PDFs, along with other useful PDF operations. This project is built with a Flask backend and a lightweight HTML/CSS/JavaScript frontend, using Bootstrap for styling components.
- β Merge multiple PDFs into a single file
- β Split PDF files by page range
- β Convert images (JPG, PNG) to PDF
- β Perform operations using clean REST APIs
- β Fast, intuitive interface built with HTML, CSS, and Bootstrap
- β Simple and interactive frontend using Vanilla JS
- Python + Flask β Handles all API requests
- mypdf β Custom library to manipulate PDF files
- HTML/CSS/Bootstrap β UI layout and styling
- Vanilla JavaScript β Interacts with the Flask API
-
Clone the repo
git clone https://github.com/Mohsinullahshah11/pdf_tool cd pdf-tool -
Set up a virtual environment
python -m venv venv source venv/bin/activate -
Install dependencies
pip install -r requirements.txt
-
Run the Flask server
python Backend/index.py
-
Open in browser Navigate to
http://localhost:5000in your web browser.
PDF_TOOL/
βββ Backend/
β βββ __pycache__/
β βββ uploads/
β βββ venv/
β βββ index.py # Main Flask app entry
β βββ pdfOperations.py # PDF logic (merge/split/etc.)
β βββ utilites.py # Utility functions
β βββ requirements.txt
βββ Frontend/
β βββ assets/
β β βββ script/
β β β βββ mergePDF.js
β β β βββ splitPDF.js
β β β βββ script.js
β β βββ style/
β βββ views/
β βββ index.html
β βββ merge_PDF.html
β βββ split_PDF.html
βββ README.md