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-0.2.0.tar.gz (4.4 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-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pdf_watermarker-0.2.0.tar.gz.

File metadata

  • Download URL: pdf_watermarker-0.2.0.tar.gz
  • Upload date:
  • Size: 4.4 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-0.2.0.tar.gz
Algorithm Hash digest
SHA256 90241ba861680c32e3f465748143951d789a02985ca6ba49c330d69f91541e63
MD5 e32b6b2db83f1fba63d21e2e30aa8de4
BLAKE2b-256 3e66de586b947bfaf9f82d54d1113293ed3ef144faa447c9340621f0f32764ae

See more details on using hashes here.

File details

Details for the file pdf_watermarker-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pdf_watermarker-0.2.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-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6df5ba3760ebd700ef098e076d10720c29fa34453b7fecde90ced18cbd35ac63
MD5 4b90ef69562b026a06f00f63830debad
BLAKE2b-256 90702a4ba3c0966a556a57e7247095ecfa197561713e3b7b28ba3e5e73550de1

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