Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdf_watermarker-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for pdf_watermarker-1.0.0.tar.gz
Algorithm Hash digest
SHA256 82ac53da9828f2ea65557f5161b4684c41c39529e18eb0bf5b2206fb6ae0bfde
MD5 b30e10b58b0f88294ab41f47200ca1eb
BLAKE2b-256 bb62e8cf8767930b7e1b84873144313a35ef6ff4642e758962a0df78d43818c2

See more details on using hashes here.

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

Hashes for pdf_watermarker-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f82f2bd4c6ea4824cab58282fe6863e0144ae1f9b6ee6fbbf4274db25c68cd
MD5 9e53db539d9cd537a527b3a079d832a1
BLAKE2b-256 43f4a1bab97fae201db73140e87a01f31dc788b3e72eb412b7231536ee8f6dd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page