Skip to content

Repository files navigation

PDF Merger

A simple, client-side web application for merging PDF files. No server required - all processing happens in your browser!

Features

  • 📄 Merge multiple PDF files into one
  • 🔄 Drag and drop to reorder files
  • 💾 Client-side processing (your files never leave your browser)
  • 🎨 Clean, modern UI
  • 📱 Responsive design

Demo

Live Demo

Development

Prerequisites

  • Node.js (v18 or higher)
  • npm

Setup

  1. Clone the repository:
git clone https://github.com/yourusername/PDFMerger.git
cd PDFMerger
  1. Install dependencies:
npm install
  1. Start development server:
npm run dev

The app will open at http://localhost:5173

Building for Production

Build minified files for production:

npm run build

This will create a dist folder with optimized and minified files.

Preview Production Build

npm run preview

Deployment to GitHub Pages

  1. Update the base path in vite.config.js to match your repository name

  2. Build and deploy:

npm run deploy

This will automatically build the project and deploy it to GitHub Pages.

Scripts

  • npm run dev - Start Vite development server with HMR
  • npm run build - Build and minify for production
  • npm run preview - Preview production build locally
  • npm run deploy - Build and deploy to GitHub Pages

Technologies Used

  • Vite - Fast build tool and dev server
  • pdf-lib - PDF manipulation
  • Pure JavaScript (ES6+)
  • CSS3
  • HTML5

License

MIT

About

Merge PDF files right in your browser. Drop them in, drag to reorder, name the output, download. Nothing gets uploaded anywhere - pdf-lib does all the work locally. Made this for me and my friends because the online mergers are more hassle than they're worth.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages