Add watermarks to PDF files
Project description
PDF Watermarker
Add watermarks to PDF files easily from the command line.
Installation
pip install pdf-watermarker
Usage
pdfwatermarker input.pdf -o output.pdf -t "CONFIDENTIAL"
Options
input- Input PDF file(s) or directory (required)-o, --output- Output file (or directory for multiple files)-t, --text- Watermark text (default: CONFIDENTIAL)-f, --font-size- Font size (default: 80)--opacity- Opacity 0-1 (default: 0.15)-r, --rotation- Rotation angle in degrees (default: 45)-c, --color- Color in hex format (default: #808080)-p, --position- Position: center, top-left, top-right, bottom-left, bottom-right, top-center, bottom-center (default: center)--in-place- Overwrite input file(s)
Examples
# Basic usage
pdfwatermarker document.pdf -t "DRAFT"
# Custom color and opacity
pdfwatermarker document.pdf -t "CONFIDENTIAL" -c #FF0000 --opacity 0.3
# Bottom-right corner
pdfwatermarker document.pdf -p bottom-right -r 0
# Process multiple files
pdfwatermarker *.pdf -o watermarked/
# Process all PDFs in a directory
pdfwatermarker ./pdfs/ --in-place
Development
uv sync
uv run pdfwatermarker input.pdf
# Run tests
uv run pytest
# Run linter
uv run ruff check src/
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
pdf_watermarker-1.0.0.tar.gz
(4.3 kB
view details)
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 pdf_watermarker-1.0.0.tar.gz.
File metadata
- Download URL: pdf_watermarker-1.0.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82ac53da9828f2ea65557f5161b4684c41c39529e18eb0bf5b2206fb6ae0bfde
|
|
| MD5 |
b30e10b58b0f88294ab41f47200ca1eb
|
|
| BLAKE2b-256 |
bb62e8cf8767930b7e1b84873144313a35ef6ff4642e758962a0df78d43818c2
|
File details
Details for the file pdf_watermarker-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pdf_watermarker-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6f82f2bd4c6ea4824cab58282fe6863e0144ae1f9b6ee6fbbf4274db25c68cd
|
|
| MD5 |
9e53db539d9cd537a527b3a079d832a1
|
|
| BLAKE2b-256 |
43f4a1bab97fae201db73140e87a01f31dc788b3e72eb412b7231536ee8f6dd8
|