😫 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:
- Text Watermark: Add ‘CONFIDENTIAL’ diagonally across each page.
- Style: Gray color, 50% opacity, large font.
- 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
- Install:
pip install pypdf reportlab - Copy Prompt → Run.