.NET Watermarking API to Quickly Add, Search, and Remove Watermarks

Empower your .NET apps with the ability to easily add different watermarks to PDF, DOCX, XLSX, PPTX, ODT, JPEG, PNG, MSG, and more files.

Download Free TrialView All APIs

Document and Image Watermark Management in .NET

GroupDocs.Watermark for .NET provides advanced watermarking features for different documents and images. Developers can use the API to build watermark management apps and easily add, remove, or search watermarks in PDF, Word, Excel, PowerPoint, Visio, ODT, EML, MSG, and various image formats like PNG, JPEG, BMP, and GIF. The API enables end users to watermark files quickly, apply branding to their digital documents, and prevent unauthorized access. It also supports restricting the editing of the added watermarks, which optimizes digital assets' protection. You can smoothly integrate the API with your existing document management solutions.

Some of the key API features of the .NET watermarking API are the ability to search and delete existing watermarks, obtain essential file information, insert watermarks into images within documents, rasterize PDF document pages with exceptional quality, watermark object management, working with email attachments, and more. Developers can build watermarking solutions using the API and add watermarks to PDFs, MS Office, and other documents on the .NET platform. By injecting watermarks into these documents, unwanted copying of the document content could be prevented. The unparalleled flexibility, watermarking capabilities, and ease of use make GroupDocs.Watermark for .NET the ultimate choice for developing tailored watermark manipulation solutions.

Getting Started

Please visit the System Requirements page to check the recommended OS, framework, and other settings before you get started with the .NET watermarking API. Please ensure compliance with the requirements shared on this page to enjoy a wonderful user experience.

GroupDocs.Watermark for .NET Installation

Please visit the downloads section of the library to download the MSI installer or the DLLs and set up the library at your end. You can also use the NuGet package to install the .NET document watermarking library. The command for the Visual Studio package manager console is provided below:

PM > Install-Package GroupDocs.Watermark

Learn to Add and Remove Watermarks in PDF and Word Documents in .NET

GroupDocs.Watermark for .NET helps end users watermark various commonly used data file formats, including documents, emails, and images. The API can be utilized to develop web-based or desktop-based solutions to watermark PDF and Word documents, among other files, conveniently. As part of its watermark manipulation features, the .NET watermarking API also supports searching for existing watermarks and removing them seamlessly. You can learn to add and remove watermarks from PDFs and Microsoft Word documents with the help of the code examples provided in this section.

Add Text Watermarks to Word Files using C#

Text watermarks are a good way of optimizing the authenticity of your business documents. You can insert text-based watermarks into your Word documents with the .NET API. The following coding example provides the steps and information needed for this.

  • Use the Watermarker class to load a Word document.
  • Instantiate the TextWatermark class object.
  • Set the watermark appearance (rotation angle, opacity, foreground/background colors & alignment).
  • Add the text watermark to the Word document and save it using the Save method.

// Adding Text Watermark Word documents using C#
using (Watermarker watermarker = new Watermarker("filepath/mydocument.docx"))
{
    TextWatermark watermark = new TextWatermark("Watermark", new Font("Arial", 80))
    {
        RotateAngle = -45,
        Opacity = .3,
        ForegroundColor = Color.DarkBlue,
        HorizontalAlignment = HorizontalAlignment.Center,
        VerticalAlignment = VerticalAlignment.Center
    };

// Add the text watermark
    watermarker.Add(watermark);
// Save the Word document with the text watermark added
    watermarker.Save("filepath/watermarked.docx");
}

Remove Watermarks from PDFs in .NET

Removing the existing watermarks from PDF documents could be necessary to update the branding or enhance file security. Our API offers watermark removal functionality that developers can use for PDF documents. The following C# code example explains more.

  • Load the input PDF using the Watermarker class object.
  • Search and fetch all possible watermarks as a collection.
  • The, traverse the watermark collection, and remove each watermark, or the specific one that meets the criteria you set.
  • Use the Save method to save the updated PDF document with no watermarks.

// Remove the existing watermarks from PDFs (and other documents) using C#
using (Watermarker watermarker = new Watermarker("filepath/documentWithWatermarks.pdf"))
{
    PossibleWatermarkCollection possibleWatermarks = watermarker.Search();

    // Remove every watermark by mentioning the index within the document.
    for (int i = 0; i < possibleWatermarks.Count; i++)
    {
        possibleWatermarks.RemoveAt(i);
    }
    watermarker.Save("filepath/no-watermarks.pdf");
}

You can find more code examples at the GroupDocs.Watermark for .NET GitHub examples page. We provide cross-platform Free Online Document and Image Watermark Apps for users to add text or image watermarks to PDF, DOCX, PPTX, XLSX, MSG, VSD, JPEG, and more files on the fly. Please check out our free apps today and start watermarking your documents.

Build Platform-independent Watermarking Solutions in .NET

GroupDocs.Watermark for .NET lets you watermark documents with complete peace of mind and no dependency on additional software. This standalone API performs equally well on popular operating systems such as Windows and Linux. It supports multiple .NET frameworks, which ensures a smooth usage experience across various development environments. The .NET watermarking API offers simple integration so that you can effortlessly upgrade your existing document management solutions. Experience hassle-free watermark manipulation with our cross-platform API and stay ahead of the competition.

FAQ

1. What is GroupDocs.Watermark for .NET API?

GroupDocs.Watermark for .NET is a flexible and robust watermarking API to add text and image watermarks to popular file formats programmatically. The API helps .NET developers create feature-rich applications for watermark manipulation, having the ability to add, find, and delete watermarks among supported file types.

2. What document formats does the library support?

The .NET watermarking library does support numerous document and image formats, such as DOC, DOCX, PDF, XLS, XLSX, XLT, XLSM, PPT, PPTX, POT, ODT, TXT, RTF, VSD, VSDX, JPEG, GIF, PNG, BMP, TIFF, and more.

3. Are there code examples to help learn about document watermarking using the .NET API?

Yes, we provide code examples for developers on the GitHub examples page of the .NET API. These code examples help end users during the initial learning curve, and they can get up to speed and start watermarking documents with ease.

4. Is the API secure for sensitive documents and data?

Yes, the API is secure and you can rest assured about the safety of your data while using the API. We ensure the security and integrity of your data and take all necessary measures to provide you with a secure user experience.

5. Is GroupDocs.Watermark for .NET compatible with different .NET frameworks?

Absolutely! The .NET watermarking library is compatible with multiple .NET frameworks and runs smoothly on various operating systems. You do not need to install additional software or apps for the library, and you can confidently build tailored document watermarking solutions using the library.

Looking for help?

Checkout our support channels for help with your questions related to GroupDocs product API features and working.

Ready to get started?

Download Free Trial View All APIs