GroupDocs.Watermark is an on-premise document-watermarking API that adds text and image watermarks to PDF, Word, Excel, PowerPoint, Visio, email and image files - with control over position, size, rotation, opacity, tiling and locking - and searches, edits and removes the watermarks a document already carries, including ones added by other tools. SDKs for .NET, Java, Node.js and Python.
- NEW: GroupDocs.Watermark for Python via .NET 26.10 on PyPI: engine 26.9 with the .NET 10 runtime embedded, Python 3.5 - 3.14 on Windows, Linux and macOS (Intel and Apple Silicon), and Python callbacks for page previews and logging. Release notes.
- Published GroupDocs.Watermark 26.9 for .NET on NuGet: evaluation mode now allows searching, editing and removing watermarks and adding more than one per document, and PDF image-artifact search is fixed.
- Released GroupDocs.Watermark.Mcp 26.9: an MCP server that lets AI agents add, find and remove watermarks locally. Get started.
Add, search, edit and remove watermarks in PDF, Office, Visio, email and image files on .NET Framework 4.5+ and .NET 6, 8 and 10.
- GroupDocs.Watermark-for-.NET: Core API examples for adding, searching and removing watermarks.
- Protect Word Documents: a use-case sample for locked, removal-resistant Word watermarks.
using GroupDocs.Watermark;
using GroupDocs.Watermark.Watermarks;
using (var watermarker = new Watermarker("document.pdf"))
{
var watermark = new TextWatermark("Confidential", new Font("Arial", 36));
watermark.ForegroundColor = Color.Red;
watermark.Opacity = 0.5;
watermarker.Add(watermark);
watermarker.Save("watermarked.pdf");
}Native Java library for watermarking PDF, Office, Visio, email and image files.
- GroupDocs.Watermark-for-Java: Java examples; the package
com.groupdocs:groupdocs-watermarkcomes from the GroupDocs Maven repository.
import com.groupdocs.watermark.Watermarker;
import com.groupdocs.watermark.watermarks.Color;
import com.groupdocs.watermark.watermarks.Font;
import com.groupdocs.watermark.watermarks.TextWatermark;
// Add a text watermark to a PDF
Watermarker watermarker = new Watermarker("document.pdf");
TextWatermark watermark = new TextWatermark("Confidential", new Font("Arial", 36));
watermark.setForegroundColor(Color.getRed());
watermark.setOpacity(0.5);
watermarker.add(watermark);
watermarker.save("watermarked.pdf");
watermarker.close();Add watermarking to Node.js services and scripts with the Java engine.
- GroupDocs.Watermark-for-Node.js-via-Java: Node.js examples; install with
npm install @groupdocs/groupdocs.watermark.
const groupdocs = require('@groupdocs/groupdocs.watermark');
// Add a text watermark to a PDF
const watermarker = new groupdocs.Watermarker('document.pdf');
const watermark = new groupdocs.TextWatermark('Confidential', new groupdocs.Font('Arial', 36));
watermark.setForegroundColor(groupdocs.Color.getRed());
watermark.setOpacity(0.5);
watermarker.add(watermark);
watermarker.save('watermarked.pdf');
watermarker.close();A self-contained Python package with the .NET runtime embedded: pip install groupdocs-watermark-net, Python 3.5 - 3.14.
- GroupDocs.Watermark-for-Python-via-.NET: Runnable examples for every documented scenario, with a Dockerfile.
- PyPI | Docs | API Reference | Release Notes
from groupdocs.watermark import Watermarker
from groupdocs.watermark.watermarks import TextWatermark, Font, Color
with Watermarker("document.pdf") as watermarker:
watermark = TextWatermark("Confidential", Font("Arial", 36.0))
watermark.foreground_color = Color.red
watermark.opacity = 0.5
watermarker.add(watermark)
watermarker.save("watermarked.pdf")Let AI agents watermark documents through the GroupDocs engine, locally over MCP: no uploads, works in evaluation mode out of the box and with your existing license.
- GroupDocs.Watermark.Mcp: The MCP server: add text and image watermarks, search for and remove existing ones, and read document info.
- GroupDocs.Mcp.Installer: Cross-platform installer with per-client registration (Claude Desktop, Claude Code, VS Code, Cursor and more).
- GroupDocs.Watermark.Mcp.Tests: Integration suite that verifies every published release.
# Install and run in one command (.NET 10), then ask your agent:
dnx GroupDocs.Watermark.Mcp --yes"Add a diagonal CONFIDENTIAL watermark to every PDF in my contracts folder." "Find the old draft watermarks in report.docx and remove them."
MCP documentation | NuGet | Docker | MCP Registry
- Stamp "Confidential" or "Draft" across contracts, NDAs and reports before they leave the company.
- Brand outgoing documents with a logo watermark, tiled or placed per page.
- Lock watermarks in Word documents so recipients cannot edit or delete them.
- Find and remove outdated watermarks, including ones added by other tools, in bulk.
- Watermark page previews for document portals and review workflows.
- 40+ formats: PDF, Word (DOC, DOCX, RTF, ODT and templates), Excel (XLS, XLSX and templates), PowerPoint (PPT, PPTX and shows), Visio (VSD, VSDX and more), email (EML, EMLX, MSG, OFT) and images (PNG, JPG, BMP, GIF, TIFF, WEBP, JPEG 2000).
- Text and image watermarks with font, color, opacity, rotation, alignment, margins, sizing and tiling.
- Format-specific placement: PDF artifacts and annotations, slide and worksheet backgrounds, headers and footers, Visio pages, locked Word sections.
- Search watermarks by text, regular expression, image similarity or formatting, then edit or remove them.
- Document info and page previews; password-protected documents.
- .NET:
dotnet add package GroupDocs.Watermark - Java: add
com.groupdocs:groupdocs-watermarkfrom the GroupDocs repository,https://releases.groupdocs.com/java/repo/ - Node.js:
npm install @groupdocs/groupdocs.watermark - Python:
pip install groupdocs-watermark-net - Run the sample projects from the repositories above to add, search and remove watermarks.
- Documentation and tutorials: https://docs.groupdocs.com/watermark/
- Free support forum: https://forum.groupdocs.com/c/watermark
- Temporary license for full-feature evaluation: https://purchase.groupdocs.com/temporary-license
document-watermark pdf-watermark add-watermark remove-watermark watermark-search content-protection watermarking-api python mcp mcp-server ai-agents