Add diagonal text watermarks to PDF files with opacity and multi-line support.
Project description
easy-pdf-watermarker
Add diagonal text watermarks to PDF files. Supports opacity, multi-line text, custom color, and angle.
Install
pip install easy-pdf-watermarker
Python usage
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
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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easy_pdf_watermarker-0.1.0.tar.gz.
File metadata
- Download URL: easy_pdf_watermarker-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93a8a36f28a9dfa72d51c43c583b1c2596e1d5bb8c61f6b59d451410bcc622e3
|
|
| MD5 |
c4ed1ab24d32265f93af6941aa74a046
|
|
| BLAKE2b-256 |
795033e477916f0a6b05cbc86ae2bf5b682f87c46b3f559ba9d7a172573896a7
|
File details
Details for the file easy_pdf_watermarker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: easy_pdf_watermarker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1d9271d09ae342a51e5b25f0da5508bf9195554cc649a14450b957c3fc131a7
|
|
| MD5 |
3d9408ab93bdf472c437f3e836ea8e41
|
|
| BLAKE2b-256 |
16770791d0d0c48d1c86d0c4a17e8af1b60ad1a7f5577ea0124657e2a91307c3
|