GroupDocs.Watermark 21.3.0

.NET Standard 2.0 .NET Framework 2.0
Install-Package GroupDocs.Watermark -Version 21.3.0
dotnet add package GroupDocs.Watermark --version 21.3.0
<PackageReference Include="GroupDocs.Watermark" Version="21.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GroupDocs.Watermark --version 21.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GroupDocs.Watermark, 21.3.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install GroupDocs.Watermark as a Cake Addin
#addin nuget:?package=GroupDocs.Watermark&version=21.3.0

// Install GroupDocs.Watermark as a Cake Tool
#tool nuget:?package=GroupDocs.Watermark&version=21.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.NET API to Watermark Documents

Version 21.3 Nuget


Product Page | Docs | Demo | API Reference | Examples | Blog | Search | Free Support | Temporary License

This .NET component offers read & write watermark support for the documents of 40+ file formats. Supports watermark search, customization & extraction as well.

Document Watermark Processing Features

  • Add text and image watermark to supported document formats.
  • Search and remove text and image watermarks.
  • Search watermarks in particular objects.
  • Apply a watermark to images inside a document.
  • Work with existing watermark objects.
  • Extract information of watermark objects in a document.
  • Perform PDF document rasterization.
  • Fetch document basic information.
  • Search watermarks by text formatting (font, color, etc.).
  • Set background image for charts in Excel and PowerPoint documents.
  • Work with PDF and email attachments.

Read & Write Watermark Formats

Microsoft Excel: XLSX, XLSM, XLTM, XLT, XLTX, XLS
Microsoft PowerPoint: PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, PPS
OpenOffice: ODT
Fixed Layout: PDF

Platform Independence

GroupDocs.Watermark for .NET does not require any external software or third-party tool to be installed. GroupDocs.Watermark for .NET supports any 32-bit or 64-bit operating system where .NET or Mono framework is installed. The other details are as follows:

Microsoft Windows: Microsoft Windows Desktop (x86, x64) (XP & up), Microsoft Windows Server (x86, x64) (2000 & up)
Development Environments: Microsoft Visual Studio (2010 & up)
Supported Frameworks: GroupDocs.Conversion for .NET supports .NET frameworks.

Get Started

Are you ready to give GroupDocs.Watermark for .NET a try? Simply execute Install-Package GroupDocs.Watermark from Package Manager Console in Visual Studio to fetch & reference GroupDocs.Watermark assembly in your project. If you already have GroupDocs.Watermark for .Net and want to upgrade it, please execute Update-Package GroupDocs.Watermark to get the latest version.

Please check the GitHub Repository for other common usage scenarios.

Using C# to Add Watermark to All Images on a PDF Page

PdfLoadOptions loadOptions = new PdfLoadOptions();
// Constants.InDocumentPdf is an absolute or relative path to your document. Ex: @"C:\Docs\document.pdf"
using (Watermarker watermarker = new Watermarker(Constants.InDocumentPdf, loadOptions))
    // initialize image or text watermark
    TextWatermark watermark = new TextWatermark("Protected image", new Font("Arial", 8));
    watermark.HorizontalAlignment = HorizontalAlignment.Center;
    watermark.VerticalAlignment = VerticalAlignment.Center;
    watermark.RotateAngle = 45;
    watermark.SizingType = SizingType.ScaleToParentDimensions;
    watermark.ScaleFactor = 1;

    PdfContent pdfContent = watermarker.GetContent<PdfContent>();

    // get all images from the first page
    WatermarkableImageCollection images = pdfContent.Pages[0].FindImages();

    // add watermark to all found images
    foreach (WatermarkableImage image in images)


Search Watermarks in PDF using Regular Expression via C# Code

// Constants.InDocumentPdf is an absolute or relative path to your document. Ex: @"C:\Docs\document.pdf"
using (Watermarker watermarker = new Watermarker(Constants.InDocumentPdf))
    Regex regex = new Regex(@"^© \d{4}$");

    // search by regular expression
    TextSearchCriteria textSearchCriteria = new TextSearchCriteria(regex);

    // find possible watermarks using regular expression
    PossibleWatermarkCollection possibleWatermarks = watermarker.Search(textSearchCriteria);

    Console.WriteLine("Found {0} possible watermark(s).", possibleWatermarks.Count);

Product Page | Docs | Demo | API Reference | Examples | Blog | Search | Free Support | Temporary License

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net20 net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on GroupDocs.Watermark:

Package Downloads

Conholdate.Total for .NET is a complete package to work with a large number of file formats from Microsoft Word, Excel, PowerPoint, Outlook, Project, Visio, Adobe Acrobat, Illustrator, Photoshop, AutoCAD, OpenOffice and many more. Conholdate.Total for .NET allows you to use any API released under Aspose and GroupDocs for .NET in order to create, convert, read, edit, update and print popular document formats. Moreover, you may view, annotate, watermark, assemble, classify, search, redact, parse, merge and compare documents without needing to install the native applications. It helps you in file format manipulation and document automation via simple API. Conholdate.Total for .NET also includes specialized APIs to read and create barcodes, extract text from images using OCR as well as extract human marked data from questioners, surveys, quizzes, MCQ papers and feedback forms.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
21.3.0 9,736 3/29/2021
20.7.0 7,921 7/10/2020
20.5.0 3,336 5/13/2020
20.2.0 4,004 2/25/2020
19.11.0 1,643 11/20/2019
19.10.0 468 10/17/2019
19.5.2 607 6/17/2019
19.5.1 433 6/13/2019
19.5.0 454 5/31/2019
18.8.0 857 8/7/2018
18.6.0 817 6/14/2018
18.3.0 827 3/21/2018
18.2.0 823 2/2/2018
18.1.0 827 1/11/2018
17.12.0 850 12/6/2017
17.11.0 742 11/8/2017
17.10.0 706 10/10/2017