Skip to content

Add image watermark

Overlay a PNG or JPEG image onto a PDF. MCP tool add_image_watermark / HTTP POST /v1/watermark/image.

Overlay an image — a logo, a stamp, a seal — across the pages of a PDF.

MCP tool add_image_watermark
HTTP endpoint POST /v1/watermark/image
Price $0.05
Input One PDF + one image (PNG/JPEG)
Output The PDF with the image watermark applied to every page
Parameter Type Required Description
file file yes Source PDF.
image file yes PNG or JPEG to overlay (URL, upload, or base64).
position string no Placement, e.g. center, top-right, bottom-left. Default center.
opacity number no 01. Default 0.3.
scale number no Image size relative to the page (e.g. 0.25 = a quarter of page width).

Add the logo at https://example.com/logo.png to the bottom-right of every page of https://example.com/invoice.pdf, at 25% size.

{
"file": "https://example.com/invoice.pdf",
"image": "https://example.com/logo.png",
"position": "bottom-right",
"scale": 0.25,
"opacity": 0.8
}
Terminal window
curl -i -X POST https://api.pdfasyougo.com/v1/watermark/image \
-H "Content-Type: application/json" \
-H "X-PAYMENT: <base64-encoded-payment-payload>" \
-d '{"file":"https://example.com/invoice.pdf","image":"https://example.com/logo.png","position":"bottom-right","scale":0.25,"opacity":0.8}'
{
"output": {
"url": "https://files.pdfasyougo.com/o/8f33…?token=…",
"expires_at": "2026-06-29T12:00:00Z",
"pages": 3,
"bytes": 240128
},
"operation": "watermark.image",
"cost": "0.05 USDC"
}
  • Supported image formats: PNG and JPEG. PNG transparency is preserved.
  • The watermark is applied to every page.
  • To overlay text instead of an image, use Add text watermark.