/Py-Merge-PDF

Quick PDF files merge using Python

Primary LanguagePython

PDF Merger Python Script

pdf

Description

This Python script merges multiple PDF files located in a specified folder into a single PDF file. It uses the PyPDF2 library for PDF manipulation.

Original Author: Haim Cohen
LinkedIn: Haim Cohen on LinkedIn

How to Use

Prerequisites

  • Python installed on your machine
  • PyPDF2 library installed (shell > pip install PyPDF2 or pip install -r requirements.txt )

Usage

  1. Clone this repository or download the app.py script.
  2. Open a terminal and navigate to the directory containing the script.
  3. Run shell > python app.py /path/to/pdf/files /path/to/merged/pdf/merged.pdf

Example

# Example usage
python app.py /doc/pdf-files /doc/pdf-files/merged.pdf
Merged PDF saved to: /path/to/merged/pdf/merged.pdf