📄

PDF Watermark

Add text or image watermarks to PDF documents for copyright protection.

Document ⭐ Beginner ⏱️ 3 minutes

😫 The Pain Point

You’re sharing a confidential draft with clients but need to mark it “CONFIDENTIAL” on every page. Doing this manually in Adobe Acrobat takes forever.

🚀 Agentic Solution

An Automatic PDF Watermarker that stamps every page with text or your logo.

Key Features:

  • Text Watermarks: Diagonal “DRAFT” or “CONFIDENTIAL” stamps.
  • Image Watermarks: Your company logo with opacity control.
  • Position Control: Center, corners, or custom coordinates.

⚔️ Phase 1: Commander (Quick Fix)

For quick watermarking.

Prompt:

“I have a PDF report.pdf. Write a Python script using pypdf and reportlab to:

  1. Text Watermark: Add ‘CONFIDENTIAL’ diagonally across each page.
  2. Style: Gray color, 50% opacity, large font.
  3. Output: Save as report_watermarked.pdf.

Print progress. Handle encrypted PDFs (skip with warning).”

Result: Protected documents ready for distribution.

🏗️ Phase 2: Architect (Permanent Tool)

For Legal/Compliance Teams.

Engineering Prompt:

**Role:** Python Tool Developer
**Task:** Create a "PDF Watermark Tool".

**Requirements:**
1.  **GUI:**
    *   Select PDF or folder.
    *   Mode: Text or Image watermark.
    *   Text: Input, font, size, color.
    *   Image: file picker, scale, opacity.
    *   Position dropdown (center, corners, diagonal).
    *   Preview first page.
    *   Progress bar.

2.  **Logic:**
    *   Create watermark layer with reportlab.
    *   Merge with each page using pypdf.
    *   Preserve original PDF structure.

3.  **Deliverables:**
    *   `pdf_watermark.py`
    *   `run.bat`, `run.sh`
    *   `requirements.txt`

🧠 Prompt Decoding

  • reportlab: Creates the watermark as a PDF layer. pypdf merges it onto each page.

🛠️ Instructions

  1. Install: pip install pypdf reportlab
  2. Copy Prompt → Run.

Related Workflows

Explore other categories

📬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

📖 Free eBook Guide 📦 7 Ready-to-use Scripts 🔔 Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.