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.
Designed for agencies, SaaS developers, freelancers, and document-heavy teams who want to automate PDF operations without relying on cloud services.
- π₯ 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)
- 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
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.
POST /count-pages
Headers: X-API-KEY: your-api-key
Body: multipart/form-data with single PDF
Returns: { "pages": <number> }
pip install -r requirements.txt
Then:
python app.py
Or use Docker:
docker build -t pdf-api .
docker run -p 5000:5000 pdf-api
Open http://localhost:5000 to use the drag & drop PDF merger.
Supports multiple files, mobile layout, and direct download.
- β Merging PDFs via API & UI
- β Counting PDF pages
β οΈ Error handling and validation messages
See
/screens/for real usage previews.
- Email: talabov.ali72@gmail.com
- Telegram: @talabovali
Need PDF splitting, password protection, or watermarking?
Custom features available β just ask.