Metadata-Version: 2.4
Name: pypdf-merge-cli
Version: 0.1.0
Summary: Merge multiple PDF files into one from the command line.
Author-email: Jefferson Gonçalves <gerson.simao.92@gmail.com>
License-Expression: MIT
Keywords: pdf,merge,cli
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Topic :: Utilities
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: pypdf

![pypdf-merge-cli](banners/pdf-merge-cli.png)

# pypdf-merge-cli

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
![Python](https://img.shields.io/badge/python-3.9%2B-blue)

Tiny CLI to merge PDF files into one. Wraps [pypdf](https://pypi.org/project/pypdf/) (pure Python, no system dependencies).

## Install

```bash
pip install -e .
```

Requires Python 3.9+.

## Usage

```bash
pypdfmerge a.pdf b.pdf c.pdf                  # writes merged.pdf
pypdfmerge a.pdf b.pdf -o combined.pdf        # explicit output path
```

| Argument | Required | Description |
|---|---|---|
| `pdfs` | yes | PDF files to merge, in order (2 or more) |
| `-o`, `--output` | no | Output PDF path (default: `merged.pdf`) |

On success, prints the output path, page count, and file size:

```
merged.pdf (12 pages, 48213 bytes)
```

Exits non-zero with an error message if any input file doesn't exist.

## Development

```bash
pip install -e .
python tests/test_merge.py
```

## License

MIT © [Jefferson Gonçalves](https://github.com/jeffersongoncalves)
