# Tanod Docs PDF Watermark

> Tanod Docs PDF Watermark is a paid API for AI agents from docs.tanod.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-13).

Stamps text watermarks onto PDF pages with configurable font, color, opacity, angle, position, and layer options

## Facts

- Endpoint: POST https://docs.tanod.dev/v1/pdf/watermark?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanod-docs-pdf-watermark-c73482ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tT3tG2ujiMLdVonxTnWsc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tanod-docs-pdf-watermark-c73482ff -d '<json body>'
```

Example prompt: Can you watermark this PDF with the text 'CONFIDENTIAL' in red, at 50% opacity, diagonally at 45 degrees, centered on every page? The PDF is at https://example.com/report.pdf — return it as a base64 file.

## When to prefer this

Choose this endpoint when you need to programmatically add text watermarks to PDFs with fine-grained control over font, color, opacity, angle, position, and which pages are stamped. It is ideal for marking documents as confidential, draft, or branded before distribution. Prefer this over general-purpose PDF editors when you need a pay-per-call API with no subscription, support for both URL-hosted and base64-encoded PDF inputs, and the option to receive output as either inline base64 or a short-lived download URL to keep responses compact.

## Known failure modes

- PDF URL is inaccessible, private, or exceeds 20 MB — returns error
- PDF URL points to an internal/IP-literal host — refused for security
- Watermark text exceeds 200 characters — validation error
- Color value does not match #rrggbb hex pattern — validation error
- Opacity outside 0.05–1 range — validation error
- Neither url nor pdf_base64 provided — missing input error
- Page range string contains invalid characters — validation error
- Font value not in allowed enum — validation error

## How this service works

Documents: DOCX template fill, Office to PDF, any file to Markdown, PDF to Word, OCR, PDF pipeline.

## Output

Returns a JSON object with the watermarked PDF either as an inline base64-encoded file (including name, byte size, page count, content_type) or as a temporary download URL valid for 24 hours (with url, expires_at, bytes, content_type, sha256). Also includes metadata: operation type, input byte size, input page count, output byte size, stamped page count, and a flag indicating if untrusted content was removed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "anyOf": [
    {
     "type": "string",
     "maxLength": 2048,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."
  },
  "font": {
   "enum": [
    "helvetica",
    "helvetica-bold",
    "times",
    "times-bold",
    "courier",
    "courier-bold"
   ],
   "type": "string",
   "default": "helvetica-bold",
   "description": "Built-in PDF font: helvetica, helvetica-bold (default), times, times-bold, courier or courier-bold."
  },
  "text": {
   "type": "string",
   "maxLength": 200,
   "minLength": 1,
   "description": "Windows-1252 (Latin) text, drawn with a built-in PDF font."
  },
  "angle": {
   "type": "number",
   "default": 45,
   "maximum": 360,
   "minimum": -360,
   "description": "Counter-clockwise degrees."
  },
  "color": {
   "type": "string",
   "default": "#808080",
   "pattern": "^#[0-9a-fA-F]{6}$",
   "description": "Text colour as #rrggbb (default #808080, grey)."
  },
  "layer": {
   "enum": [
    "over",
    "under"
   ],
   "type": "string",
   "default": "over",
   "description": "over (default: on top of the page content) or under (behind it; hidden where the page is opaque)."
  },
  "pages": {
   "anyOf": [
    {
     "type": "string",
     "pattern": "^[0-9a-zA-Z ,\\-]+$",
     "maxLength": 200,
     "minLength": 1
    },
    {
     "type": "null"
    }
   ],
   "default": null,
   "description": "Pages to stamp (default all)."
  },
  "margin": {
   "type": "number",
   "default": 36,
   "maximum": 144,
   "minimum": 0,
   "description": "Points from the edge for non-center positions."
  },
  "output": {
   "enum": [
    "base64",
    "url"
   ],
   "type": "string",
   "default": "base64",
   "description": "base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."
  },
  "opacity": {
   "type": "number",
   "default": 0.3,
   "maximum": 1,
   "minimum": 0.05,
   "description": "0.05 (faint) to 1 (opaque); default 0.3."
  },
  "position": {
   "enum": [
    "center",
    "top-left",
    "top-center",
    "top-right",
    "middle-left",
    "middle-right",
    "bottom-left",
    "bottom-center",
    "bottom-right"
   ],
  
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "file": {
   "name": "watermarked.pdf",
   "bytes": 13676,
   "pages": 1,
   "data_base64": "JVBERi0xLjQKJb/3... (trimmed: 18,236 base64 characters in the reply)",
   "content_type": "application/pdf"
  },
  "operation": "watermark",
  "input_bytes": 13264,
  "input_pages": 1,
  "output_bytes": 13676,
  "stamped_pages": 1,
  "untrusted_content": true,
  "active_content_removed": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanod-docs-pdf-watermark-c73482ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from docs.tanod.dev](https://www.zero.xyz/host/docs.tanod.dev/llms.txt)
