GroupDocs.Watermark for .NET

Secure DOCX with .NET C# Watermarks

Apply advanced watermarking techniques in DOCX files using .NET C#, perfect for protecting intellectual property in Word documents across industries.

Effortlessly Generate Watermarks for Docx Documents

GroupDocs.Watermark for .NET: Advanced Watermarking library for .NET applications. Empower your solution and secure documents with watermarks just in time.

  1. Core Class: Watermarker. The main class of our API is Watermarker. You need to instantiate it before document processing. Do not forget to pass the Docx file to the constructor as a path or a stream object.
  2. Crafting Your Watermark. The next step is constructing a Watermark object of the desired type. It can be placed not only on a specific document page but also in native document parts like images or headers.
  3. Fine-Tuning Appearance. Set watermark properties such as height and width, top, left, central alignments, fonts and colors, etc.
  4. Applying and Saving. Use the Watermarker method to add a new watermark. Feel free to add as many watermarks as you need. You may save the watermarked document to any location.
// Generate image watermark in DOCX file

// Provide source file path to Watermarker constructor
using (Watermarker watermarker = new Watermarker("input.docx"))
{
    // Generate image watermark instance with image file
    using (ImageWatermark watermark = new ImageWatermark("watermark.png"))
    {
        watermarker.Add(watermark);
    }
    // Save watermarked DOCX result
    watermarker.Save("output.docx");
}
dotnet add package GroupDocs.Watermark
click to copy
copied
More examples Documentation

Elevate Your Watermarking Game

Unlock advanced watermarking capabilities with our GroupDocs.Watermark API for .NET. This powerful tool allows for precise customization and application of watermarks across various document types to ensure maximum security and copyright adherence with minimal visual disruption.

Comprehensive Watermarking Solutions

Sophisticated Tiling Options

Extend your watermarks across entire documents seamlessly with our tiling options. This feature allows watermarks to cover the full document area, preventing removal and ensuring complete document protection without compromising on design or readability.

Vibrant Color Customization

Add a splash of color to your watermarks! Our API enables full spectrum color customization, allowing you to apply watermarks that perfectly match your corporate branding or document style. Enhance visual appeal while maintaining robust security features.

Enhanced Security Settings

Take document security to the next level with advanced watermark settings. Configure multi-layer watermarks, incorporating both visible and invisible elements, to protect against unauthorized copying and ensure only intended recipients can access critical information.

Generate PowerPoint watermark

This example shows how to add watermark to the PPTX background images

C#


    //  Load PPTX presentation
    var loadOptions = new PresentationLoadOptions();
    using (Watermarker watermarker = new Watermarker("source.pptx", loadOptions))
    {
        //  Set up watermark properties
        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;

        //  Watermark slides background
        PresentationContent content = watermarker.GetContent<PresentationContent>();
        foreach (PresentationSlide slide in content.Slides)
        {
            if (slide.ImageFillFormat.BackgroundImage != null)
            {
                slide.ImageFillFormat.BackgroundImage.Add(watermark);
            }
        }

        //  Save processed presentation
        watermarker.save("result.pptx");
    }

GroupDocs.Watermark for .NET

GroupDocs.Watermark for .NET harnesses the power of .NET C# to add sophisticated watermarking capabilities to DOCX files. This tool is designed for seamless integration into Microsoft Word environments, enabling the application of watermarks that are dynamically scalable, transparent, and positioned according to document layout. It’s ideal for legal documents, confidential reports, and corporate policies that require both visibility and protection. Features include custom text styles, image watermarking, and conditional placement based on document content. With support for the latest .NET frameworks, GroupDocs.Watermark ensures that your document security measures are state-of-the-art.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Watermark for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Implementing Watermarks in DOCX with C#

Master the application of custom, secure watermarks in DOCX files using .NET C#, essential for document integrity and copyright protection.

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