Skip to content

Mohsinullahshah11/pdf_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ PDF Tool

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.

πŸš€ Features

  • βœ… 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

🧰 Tech Stack

Backend

  • Python + Flask – Handles all API requests
  • mypdf – Custom library to manipulate PDF files

Frontend

  • HTML/CSS/Bootstrap – UI layout and styling
  • Vanilla JavaScript – Interacts with the Flask API

πŸ“¦ Setup Instructions

  1. Clone the repo

    git clone https://github.com/Mohsinullahshah11/pdf_tool
    cd pdf-tool
  2. Set up a virtual environment

    python -m venv venv
    source venv/bin/activate 
  3. Install dependencies

    pip install -r requirements.txt
  4. Run the Flask server

    python Backend/index.py
  5. Open in browser Navigate to http://localhost:5000 in your web browser.

πŸ“‚ Folder Structure

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published