GroupDocs.Watermark 20.7.0

GroupDocs.Watermark for .NET is a powerful document watermarking API to add image and text watermarks. Furthermore, API works to search and remove the watermarks which were already added to the documents by other third-party software. The watermarks added by this API are hard to remove by any third-party tools. It is straightforward and self-descriptive for integration into the custom applications. Microsoft Word, Excel, PowerPoint, Visio, PDF, raster images, multi-page TIFF and animated GIF formats are supported.

Features:

 * Apply image and text watermark to various document formats;
 * Assign watermark to only particular frames of a multi-frame image;
 * Place watermark or remove it from the background images of documents;
 * Search watermarks based on specific parameters or by combining multiple criteria;
 * Add or remove watermark from a particular section or whole document;
 * Add watermark to images inside documents;
 * Rasterize particular page or whole PDF document to protect added watermarks;
 * Allocate hidden watermark to PDF that only appears when printing document
 * Identify text watermark even if there are unreadable characters between letters;
 * Protect Text Watermark using Unreadable Characters.

Supported document formats:

 * Microsoft Word documents - DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF;
 * Microsoft Excel spreadsheets - XLS, XLT, XLSB, XLSX, XLSM, XLTX, XLTM;
 * Microsoft PowerPoint presentations - PPT, PPS, PPTX, PPTM, POTX, POTM, PPSX, PPSM;
 * Microsoft Visio diagrams - VSDX, VDX, VSTX, VSSX, VSDM, VSSM, VSTM, VSX, VTX;
 * Open Document formats - ODS, ODT;
 * Portable Document Formats - PDF;
 * Email - EML, EMLX, MSG, OFT;
 * Image - BMP, JPEG, JPEG2000, PNG, GIF, TIFF, WEBP, EMF, WMF.

For more details on the GroupDocs.Watermark for .NET API, please visit GroupDocs website at:
https://www.groupdocs.com/products/watermark/net

Note: GroupDocs.Watermark for .NET will run in evaluation mode. In order to test full features of the product, please request a free 30-day temporary license.

Install-Package GroupDocs.Watermark -Version 20.7.0
dotnet add package GroupDocs.Watermark --version 20.7.0
<PackageReference Include="GroupDocs.Watermark" Version="20.7.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GroupDocs.Watermark --version 20.7.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.NET API to Watermark Documents

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 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.

New Features & Enhancements in Version 20.7

  • Support of Linux for GroupDocs.Watermark for .NET Core.
  • Removal of Legacy namespace.

Important Notice

  • In this version we have removed the Legacy API of GroupDocs.Watermark. So from version 20.7 GroupDocs.Watermark.Legacy does not exist anymore.

For the detailed notes, please visit GroupDocs.Watermark for .NET 20.7 Release Notes.

Read & Write Watermark Formats

Microsoft Word: DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF
Microsoft Excel: XLSX, XLSM, XLTM, XLT, XLTX, XLS
Microsoft PowerPoint: PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, PPS
Microsoft Visio: VSD, VDX, VSDX, VSTX, VSS, VSSX, VSDM, VSSM, VSTM, VTX, VSX
OpenOffice: ODT
Email: EML, EMLX, OFT, MSG
Fixed Layout: PDF
Image: BMP, GIF, JPG/JPEG/JPE, JP2, PNG, TIFF, WEBP

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.

Getting Started with GroupDocs.Watermark for .NET

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)
    {
        image.Add(watermark);
    }

    watermarker.Save(Constants.OutDocumentPdf);
}

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 | Documentation | Demo | API Reference | Examples | Blog | Free Support | Temporary License

.NET API to Watermark Documents

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 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.

New Features & Enhancements in Version 20.7

  • Support of Linux for GroupDocs.Watermark for .NET Core.
  • Removal of Legacy namespace.

Important Notice

  • In this version we have removed the Legacy API of GroupDocs.Watermark. So from version 20.7 GroupDocs.Watermark.Legacy does not exist anymore.

For the detailed notes, please visit GroupDocs.Watermark for .NET 20.7 Release Notes.

Read & Write Watermark Formats

Microsoft Word: DOC, DOT, DOCX, DOCM, DOTX, DOTM, RTF
Microsoft Excel: XLSX, XLSM, XLTM, XLT, XLTX, XLS
Microsoft PowerPoint: PPTX, PPTM, PPSX, PPSM, POTX, POTM, PPT, PPS
Microsoft Visio: VSD, VDX, VSDX, VSTX, VSS, VSSX, VSDM, VSSM, VSTM, VTX, VSX
OpenOffice: ODT
Email: EML, EMLX, OFT, MSG
Fixed Layout: PDF
Image: BMP, GIF, JPG/JPEG/JPE, JP2, PNG, TIFF, WEBP

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.

Getting Started with GroupDocs.Watermark for .NET

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)
    {
        image.Add(watermark);
    }

    watermarker.Save(Constants.OutDocumentPdf);
}

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 | Documentation | Demo | API Reference | Examples | Blog | Free Support | Temporary License

Release Notes

https://docs.groupdocs.com/watermark/net/groupdocs-watermark-for-net-20-7-release-notes

NuGet packages (1)

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

Package Downloads
GroupDocs.Total
GroupDocs.Total for .NET is a compilation of every .NET API offered by GroupDocs. We compile it on a daily basis to ensure that it contains the most up to date versions of each of our .NET document manipulation APIs. With GroupDocs.Total for .NET developers can use all our APIs with a single license. However, you can order any individual API as well. The APIs we offer include: GroupDocs.Viewer GroupDocs.Annotation GroupDocs.Conversion GroupDocs.Comparison GroupDocs.Signature GroupDocs.Assembly GroupDocs.Metadata GroupDocs.Search GroupDocs.Parser GroupDocs.Watermark GroupDocs.Editor GroupDocs.Merger GroupDocs.Redaction GroupDocs.Classification GroupDocs.Total for .NET Documentation https://docs.groupdocs.com/display/gdtotalproductfamily/GroupDocs.Total+for+.NET Free support for GroupDocs.Total for .NET is provided on our support forum: https://forum.groupdocs.com/

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
20.7.0 168 7/10/2020
20.5.0 283 5/13/2020
20.2.0 359 2/25/2020
19.11.0 374 11/20/2019
19.10.0 208 10/17/2019
19.5.2 282 6/17/2019
19.5.1 154 6/13/2019
19.5.0 186 5/31/2019
18.8.0 478 8/7/2018
18.6.0 426 6/14/2018
18.3.0 409 3/21/2018
18.2.0 413 2/2/2018
18.1.0 429 1/11/2018
17.12.0 431 12/6/2017
17.11.0 373 11/8/2017
17.10.0 337 10/10/2017