GroupDocs.Watermark at a glance

API to put watermarks on documents via .NET

Illustration watermark

C# files watermark

Add watermarks to your business files using GroupDocs.Watermark. Use text, images, diagrams or email attachments.

Customize watermarks to your goals

GroupDocs.Watermark for .NET software allows to customize watermarks in various ways. Text styles like bold, italic, font types along with image properties like rotation etc. enrich watermarking process.

All popular file formats are supported

Many file and document formats are supported by GroupDocs.Watermark solution. PDF, Microsoft Office Word, Excel, PowerPoint, images like JPEG, PNG, GIF, BMP, Visio diagrams, emails etc. could be protected with our watermarks.

Search and update watermarks

Watermarks which are already presented in a document may be found and processed again. Modify text, style, images or remove revealed watermarks without extra efforts.

Platform independence

GroupDocs.Watermark for .NET supports operating systems, frameworks and package managers listed below

Amazon
Docker
Azure
VS Code
ReSharper
macOS
Linux
NuGet

Supported file formats

GroupDocs.Watermark for .NET provides processing of the following file formats.

Microsoft Office & OpenDocument formats

  • Portable: PDF
  • Word: DOC, DOCM, DOCX, DOT, DOTM, DOTX, RTF
  • Excel: XLSX, XLS, XLT, XLTM, XLSB, XLSM
  • PowerPoint: PPTX, PPT, PPTM, POTX, POTM, PPSM, PPSX
  • OpenDocument: ODT, ODP, ODS

Images & Graphics

  • Popular image formats: BMP, JPG, JPEG, PNG
  • Multi-page images: GIF, WEBP, TIFF

Other

  • Outlook: EML, EMLX, MSG, OFT
  • Microsoft Visio: VSDX, VSTX, VSSX, VSDM, VSSM, VSTM, VSD, VDX, VSX, VTX, VSS, VST, VDW

GroupDocs.Watermark features

Protect PDF, Office, Images and other formats by watermark

Feature icon

Documents watermarking

Add or Remove Watermarks from a Particular Section or whole Document of Various File Formats.

Feature icon

Style your watermark

Customize various watermark properties like color, font, rotation etc.

Feature icon

PDF hidden printing watermark

Allocate Hidden Watermark to PDF that only Appears when Printing Document.

Feature icon

Watermark only images in documents

Watermark all Images in a Particular Section, Page, Slide, or Document.

Feature icon

Process selected image frames

Assign Watermark to only Particular Frames of a Multi-Framed Image.

Feature icon

Attachments & shapes

Set Watermark to all Attachments in an Excel Document & all Image Shapes in Slides.

Feature icon

PDF objects

Align Watermark to Bleed Box, Art Box, Crop Box, or Trim Box in PDF Document.

Feature icon

Documents background

Place Watermark or Remove it from the Background Images of Spreadsheet or Slides.

Feature icon

Unreadable Characters Protection

Protect Text Watermark using Unreadable Characters in Presentations.

Feature icon

Search Watermarks in Documents

Search Watermarks Based on Specific Parameters or by Combining Multiple Criteria.

Feature icon

Search similar image watermarks

Look for Image Watermarks that Resemble a Particular Image.

Feature icon

Get document information

Programmatically Extract Page Setup & Other Information for Supported Formats.

Code samples

Some use cases of typical GroupDocs.Watermark for .NET operations

Watermark by adding an image to a document.

To protect any document you can use image watermarks:

How to protect file by image watermark.

// Load source document to Watermarker
using (Watermarker watermarker = new Watermarker("document.pdf"))
{
    // Specify path to a watermark image
    using (ImageWatermark watermark = new ImageWatermark("watermark.jpg"))
    {
        // Protect the file and save it
        watermarker.Add(watermark);

        watermarker.Save("result.pdf");
    }
}

Search and modify existing watermarks.

GroupDocs.Watermark is able to modify watermarks that are already presented in a document. Search for desired items and update their properties.

Watermarks search & modification.

// Load source document
using (Watermarker watermarker = new Watermarker("document.pdf"))
{
    // Search for watermarks to be updated
    TextSearchCriteria searchCriteria = new TextSearchCriteria("test", false);
    PossibleWatermarkCollection watermarks = watermarker.Search(searchCriteria);
    foreach (PossibleWatermark watermark in watermarks)
    {
        // Update desired properties
        watermark.Text = "New Text";
    }

    // Save modified document to a specified path
    watermarker.Save("document.pdf");
}

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English