Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gsudiro/pdf_merger_compressor

This program merge and compress PDF files
https://github.com/gsudiro/pdf_merger_compressor

merger pdf pdf-converter

Last synced: 17 days ago
JSON representation

This program merge and compress PDF files

Awesome Lists containing this project

README

        

# PDF Merger and Compressor

## Overview
This Python application provides a user-friendly graphical interface for merging multiple PDF files into a single document and compressing the resulting PDF to reduce file size. Built with `tkinter` for the GUI and `PyPDF2` for PDF operations, the program allows users to easily select their PDF files and perform the merging and compression in a responsive manner using multithreading.

## Screenshot
![PDF Merger and Compressor Interface](./img/pdf_merger.png)

## Features
- **Select Multiple PDFs**: Easily choose multiple PDF files from your local filesystem.
- **Merge PDFs**: Combine selected PDFs into one merged PDF document.
- **Compress Output**: Generate a compressed version of the merged PDF using Ghostscript.
- **Cross-Platform**: Works on Windows, Linux, and macOS (with Ghostscript installed).

## Requirements
- Python 3.x
- `PyPDF2`: For PDF merging functionalities.
- Ghostscript: Required for PDF compression (must be installed separately).
- `tkinter`: Included with standard Python installations for creating the GUI.

## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/pdf-merger-compressor.git
```
2. Create the virtual environemnt folder
```bash
python3 -m venv .venv
```
3. Activate the environment ('deactivate' to exit)
```bash
source .venv/Scripts/activate
```
4. Install the required libraries
```bash
pip install -r requirements.txt
```
5. Run the application using:
```bash
python pdfMerger.py
```