Metadata-Version: 2.4
Name: easy-pdf-watermarker
Version: 0.1.0
Summary: Add diagonal text watermarks to PDF files with opacity and multi-line support.
License: MIT
Project-URL: Homepage, https://github.com/yourusername/easy-pdf-watermarker
Keywords: pdf,watermark,pymupdf
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: pymupdf>=1.23.0

# easy-pdf-watermarker

Add diagonal text watermarks to PDF files. Supports opacity, multi-line text, custom color, and angle.

## Install

```bash
pip install easy-pdf-watermarker
```

## Python usage

```python
from easy_pdf_watermarker import watermark

# Basic
watermark("input.pdf", "output.pdf")

# Custom
watermark(
    "input.pdf",
    "output.pdf",
    text="hoerudin@example.com\n2025-06-11\nProperty of VDR",
    font_size=40,
    opacity=0.2,
    color=(0.5, 0.5, 0.5),  # or "128,128,128" or "#808080"
    angle=-45,
)

# Encrypted PDF
watermark("input.pdf", "output.pdf", password="secret")
```

## CLI usage

```bash
easy-pdf-watermarker input.pdf output.pdf
easy-pdf-watermarker input.pdf output.pdf --text "DRAFT" --opacity 0.2 --angle -45
easy-pdf-watermarker input.pdf output.pdf --text "email\ndate\nProperty of VDR" --fontsize 40
```

## Options

| Argument | Default | Description |
|---|---|---|
| `--text` | `CONFIDENTIAL` | Watermark text. Use `\n` for newlines. |
| `--fontsize` | `60` | Font size in points |
| `--opacity` | `0.3` | Opacity 0.0–1.0 |
| `--color` | gray | `r,g,b` (0–255) or `#rrggbb` |
| `--angle` | `45` | Rotation in degrees. Use `-45` for other diagonal. |
| `--password` | — | Password for encrypted PDFs |
