https://github.com/abhis-10/pdf_merger
Its one of my friendly tool that i built to save you from those time consuming pdf's merging situations.
https://github.com/abhis-10/pdf_merger
bootstrap javascript nodejs
Last synced: 2 months ago
JSON representation
Its one of my friendly tool that i built to save you from those time consuming pdf's merging situations.
- Host: GitHub
- URL: https://github.com/abhis-10/pdf_merger
- Owner: abhis-10
- Created: 2025-02-12T17:20:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-12T17:52:25.000Z (over 1 year ago)
- Last Synced: 2025-06-25T23:04:41.726Z (about 1 year ago)
- Topics: bootstrap, javascript, nodejs
- Language: HTML
- Homepage:
- Size: 5.93 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDF_Merger
A friendly and efficient Node.js + Express PDF merging tool that lets users upload multiple PDF files and merges them into a single combined document in a few clicks.
This project saves you from time-consuming manual PDF merging and provides a simple backend that handles uploads, merging, and serving the merged PDF.
### Features
1. Upload multiple PDF files at once
2. Automatically merge uploaded PDFs into one file
3. Serves merged PDF back to user for download
4. Simple UI form (in template/index.html) to select files
5. Stores uploads temporarily in uploads/ before merging
### Project Structure
```mermaid
flowchart TD
A[User Browser] -->|Open App| B[index.html]
B -->|Select PDFs & Submit| C[Express Server
Server.js]
C -->|Upload PDFs| D[Multer Middleware]
D -->|Store files| E[uploads/ Folder]
E --> F[merge.js]
F -->|Merge PDFs| G[Merged PDF File]
G -->|Send file| C
C -->|Download| A
```
### How it works
1. How It Works
2. User opens web page with an upload form.
3. User selects 2+ PDF files to upload.
4. Multer handles file upload and saves PDFs in uploads/.
5. The app sends file paths to the merge logic in merge.js.
6. PDFs are merged using a library like pdf-merger-js.
7. Merged file is saved to disk (e.g., in public/ or merged/).
8.Server responds with merged PDF for download.
### Flow Diagram
```mermaid
flowchart LR
A[Client] -->|GET request| B[Upload Form]
B -->|POST PDFs| C[Express Server]
C -->|Save files| D[uploads folder]
C -->|Call merge logic| E[merge.js]
E -->|Read PDFs| D
E -->|Merge PDFs| F[Merged PDF]
F -->|Return file| A
```