GroupDocs.Watermark 21.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package GroupDocs.Watermark --version 21.3.0                
NuGet\Install-Package GroupDocs.Watermark -Version 21.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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                
#r "nuget: GroupDocs.Watermark, 21.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. 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                

.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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net20 is compatible.  net35 was computed.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.7.0 6 7/25/2024
24.6.0 368 6/27/2024
24.5.0 896 5/28/2024
24.4.0 790 4/25/2024
24.3.0 733 3/27/2024
24.2.0 657 2/29/2024
24.1.0 358 1/31/2024
23.12.0 85,955 12/29/2023
23.11.0 2,851 11/30/2023
23.10.0 1,254 11/1/2023
23.7.1 56,696 7/11/2023
23.7.0 7,816 7/3/2023
23.4.0 16,650 4/18/2023
23.3.0 15,818 3/13/2023
22.12.1 8,864 12/21/2022
22.12.0 923 12/13/2022
21.3.0 82,152 3/29/2021
20.7.0 123,793 7/10/2020
20.5.0 57,944 5/13/2020
20.2.0 71,660 2/25/2020
19.11.0 51,071 11/20/2019
19.10.0 776 10/17/2019
19.5.2 983 6/17/2019
19.5.1 907 6/13/2019
19.5.0 765 5/31/2019
18.8.0 1,292 8/7/2018
18.6.0 1,138 6/14/2018
18.3.0 1,200 3/21/2018
18.2.0 1,192 2/2/2018
18.1.0 1,237 1/11/2018
17.12.0 1,231 12/6/2017
17.11.0 1,075 11/8/2017
17.10.0 1,185 10/10/2017