Skip to content

Talabov/PDF-Merger-API-Web-Interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ PDF Merger API + Web Interface


A powerful, production-ready API and drag & drop frontend to merge PDF files in seconds. Fully local, secure, and extendable.

Includes: Dockerfile, HTML5/CSS frontend, modular Flask code, file validation, MIME checks, and full project structure.

πŸ‘‰ πŸ’³ Buy it on Gumroad


Designed for agencies, SaaS developers, freelancers, and document-heavy teams who want to automate PDF operations without relying on cloud services.


βœ… Key Features

  • πŸ“₯ Upload and merge multiple PDF files (via API or UI)
  • πŸ–₯ Drag & Drop Web Interface (mobile ready)
  • πŸ”‘ API Key protection (X-API-KEY)
  • πŸ“„ Count total pages in PDF
  • 🚫 MIME, file size, and extension validation
  • πŸ“ Secure temporary storage using timestamp + hashing
  • πŸ” Works 100% locally β€” no 3rd-party file access
  • 🧱 Clean modular structure (routes, utils, validators)
  • 🐳 Docker-ready for instant deployment
  • πŸ“¦ Includes ready-to-use static frontend (HTML/JS/CSS)

πŸ‘₯ Use Cases

  • Legal, financial, or HR teams automating doc prep
  • Web apps with PDF upload & merge needs
  • Freelancers integrating PDF workflows for clients
  • SaaS builders needing reliable PDF processing

πŸš€ API Endpoints

Merge PDFs

POST /merge
Headers: X-API-KEY: your-api-key
Body: multipart/form-data with 2+ PDF files

Returns a downloadable merged PDF and sets X-Total-Pages.


Count Pages

POST /count-pages
Headers: X-API-KEY: your-api-key
Body: multipart/form-data with single PDF

Returns: { "pages": <number> }


βš™οΈ Setup

pip install -r requirements.txt

Then:

python app.py

Or use Docker:

docker build -t pdf-api .
docker run -p 5000:5000 pdf-api

🌐 Web Interface

Open http://localhost:5000 to use the drag & drop PDF merger.
Supports multiple files, mobile layout, and direct download.


πŸ§ͺ Screenshots & Demo

  • βœ… Merging PDFs via API & UI
  • βœ… Counting PDF pages
  • ⚠️ Error handling and validation messages

See /screens/ for real usage previews.


πŸ“¬ Contacts


Need PDF splitting, password protection, or watermarking?
Custom features available β€” just ask.

About

Merge multiple PDFs in seconds through REST or drag-and-drop UI. Works 100% locally and is perfect for legal, HR, or any document-heavy team.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors