π« The Pain Point
You are sending a draft contract. You want βDRAFTβ stamped diagonally across every page so it canβt be used officially. Word has watermarks, but once itβs a PDF, you canβt add them easily without paid software.
π Agentic Solution
The Stamper: Overlays one PDF (the watermark) onto another PDF (the content).
Key Features:
- Overlay: Places the watermark on top of the text (or behind it).
- Batch: Stamps 100 contracts at once.
βοΈ Phase 1: Commander (Quick Fix)
For a quick stamp.
Prompt:
βI have
watermark.pdf(contains the logo) andcontent.pdf. Merge the watermark page over every page ofcontent.pdfusing PyPDF2. Save aswatermarked.pdf.β
Result: Protected document.
ποΈ Phase 2: Architect (Permanent Tool)
For Legal Teams.
Engineering Prompt:
**Role:** Python PDF Developer
**Task:** Create a "Batch PDF Watermarker".
**Requirements:**
1. **GUI:**
* Select Input PDF(s).
* Select Watermark File (Must be a PDF).
* "Stamp" button.
2. **Logic:**
* Load Watermark page object.
* Iterate Input PDF pages.
* `page.merge_page(watermark_page)`.
* Save result.
3. **Deliverables:** `pdf_watermark.py`, `run.bat` (Windows), `run.sh` (Mac).
π§ Prompt Decoding
- Watermark as PDF: Designing a watermark in code is hard. Designing it in Canva/Word and saving as a 1-page PDF is easy. The tool just stamps that page over your document. Simple and flexible.
π οΈ Instructions
- Create a βCONFIDENTIALβ PDF page.
- Copy Prompt -> Paste -> Run.
- Select Content + Watermark -> Stamp.